Skip to content

Commit 61e3d6a

Browse files
committed
sonatype
1 parent d26c1bc commit 61e3d6a

File tree

4 files changed

+57
-11
lines changed

4 files changed

+57
-11
lines changed

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2015 Karasiq
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

build.sbt

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name := "proxychain"
22

3-
organization := "com.karasiq"
3+
organization := "com.github.karasiq"
44

5-
version := "1.4"
5+
version := "1.5"
6+
7+
isSnapshot := false
68

79
scalaVersion := "2.11.7"
810

@@ -12,10 +14,10 @@ libraryDependencies ++= Seq(
1214
"commons-io" % "commons-io" % "2.4",
1315
"org.apache.httpcomponents" % "httpclient" % "4.3.3",
1416
"com.typesafe.akka" %% "akka-actor" % "2.3.11",
15-
"com.karasiq" %% "cryptoutils" % "1.1",
16-
"com.karasiq" %% "proxyutils" % "1.0",
1717
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
18-
"com.karasiq" %% "coffeescript" % "1.0"
18+
"com.github.karasiq" %% "cryptoutils" % "1.2",
19+
"com.github.karasiq" %% "proxyutils" % "1.0",
20+
"com.github.karasiq" %% "coffeescript" % "1.0"
1921
)
2022

2123
scalacOptions ++= Seq("-optimize", "-deprecation", "-feature")
@@ -28,4 +30,34 @@ maintainer := "Karasiq <[email protected]>"
2830

2931
packageSummary := "Proxychain"
3032

31-
packageDescription := "Proxy-chaining SOCKS/HTTP/TLS proxy server"
33+
packageDescription := "Proxy-chaining SOCKS/HTTP/TLS proxy server"
34+
35+
publishMavenStyle := true
36+
37+
publishTo := {
38+
val nexus = "https://oss.sonatype.org/"
39+
if (isSnapshot.value)
40+
Some("snapshots" at nexus + "content/repositories/snapshots")
41+
else
42+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
43+
}
44+
45+
publishArtifact in Test := false
46+
47+
pomIncludeRepository := { _ false }
48+
49+
licenses := Seq("Apache License, Version 2.0" url("http://opensource.org/licenses/Apache-2.0"))
50+
51+
homepage := Some(url("https://github.com/Karasiq/" + name.value))
52+
53+
pomExtra := <scm>
54+
<url>git@github.com:Karasiq/{name.value}.git</url>
55+
<connection>scm:git:git@github.com:Karasiq/{name.value}.git</connection>
56+
</scm>
57+
<developers>
58+
<developer>
59+
<id>karasiq</id>
60+
<name>Piston Karasiq</name>
61+
<url>https://github.com/Karasiq</url>
62+
</developer>
63+
</developers>

setup/setup.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define OutputName "proxychain"
22
#define MyAppName "Proxychain"
3-
#define MyAppVersion "1.4"
3+
#define MyAppVersion "1.5"
44
#define MyAppPublisher "Karasiq, Inc."
55
#define MyAppURL "http://www.github.com/Karasiq"
66
#define MyAppExeName "bin\proxychain.bat"

src/main/scala/com/karasiq/proxychain/AppConfig.scala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import java.net.InetSocketAddress
44

55
import com.karasiq.fileutils.PathUtils._
66
import com.karasiq.proxy.{ProxyChain, ProxyChainFactory, ProxyConnectorFactory}
7-
import com.karasiq.tls.{TLS, TLSCertificateVerifier, TLSKeyStore}
7+
import com.karasiq.tls.x509.CertificateVerifier
8+
import com.karasiq.tls.{TLS, TLSKeyStore}
89
import com.typesafe.config.{Config, ConfigFactory}
910

1011
object AppConfig {
@@ -34,12 +35,12 @@ object AppConfig {
3435

3536
def apply(): AppConfig = apply(externalConfig().getConfig("proxyChain"))
3637

37-
case class TLSConfig(keyStore: TLSKeyStore, verifier: TLSCertificateVerifier, keySet: TLS.KeySet, clientAuth: Boolean)
38+
case class TLSConfig(keyStore: TLSKeyStore, verifier: CertificateVerifier, keySet: TLS.KeySet, clientAuth: Boolean)
3839

3940
def tlsConfig(): TLSConfig = {
4041
val config = AppConfig.externalConfig().getConfig("proxyChain.tls")
4142

42-
val verifier = TLSCertificateVerifier.fromTrustStore(TLSCertificateVerifier.trustStore(config.getString("trust-store")))
43+
val verifier = CertificateVerifier.fromTrustStore(CertificateVerifier.trustStore(config.getString("trust-store")))
4344
val keyStore = new TLSKeyStore(TLSKeyStore.keyStore(config.getString("key-store"), config.getString("key-store-pass")), config.getString("key-store-pass"))
4445
val clientAuth = config.getBoolean("client-auth")
4546
val keySet = keyStore.getKeySet(config.getString("key"))
@@ -53,7 +54,7 @@ object AppConfig {
5354
tls.keyStore
5455
}
5556

56-
override protected def certificateVerifier: TLSCertificateVerifier = {
57+
override protected def certificateVerifier: CertificateVerifier = {
5758
tls.verifier
5859
}
5960
}

0 commit comments

Comments
 (0)