-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configured publishing to the central maven repository
- Loading branch information
1 parent
8004431
commit 7455c84
Showing
10 changed files
with
152 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,42 @@ | ||
name := "tlsproxy" | ||
name := "scala-tlsproxy" | ||
organization := "io.github.erikvanzijst" | ||
|
||
version := "0.1" | ||
version := "0.1-SNAPSHOT" | ||
|
||
scalaVersion := "2.12.14" | ||
|
||
libraryDependencies += "com.github.scopt" %% "scopt" % "4.0.1" | ||
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3" | ||
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.4" | ||
|
||
credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credentials") | ||
|
||
ThisBuild / organization := "io.github.erikvanzijst" | ||
ThisBuild / organizationName := "erikvanzijst" | ||
ThisBuild / organizationHomepage := Some(url("https://github.com/erikvanzijst")) | ||
|
||
ThisBuild / scmInfo := Some( | ||
ScmInfo( | ||
url("https://github.com/erikvanzijst/scala_tlsproxy"), | ||
"scm:[email protected]:erikvanzijst/scala_tlsproxy.git" | ||
) | ||
) | ||
ThisBuild / developers := List( | ||
Developer( | ||
id = "erikvanzijst", | ||
name = "Erik van Zijst", | ||
email = "[email protected]", | ||
url = url("https://github.com/erikvanzijst") | ||
) | ||
) | ||
|
||
ThisBuild / description := "Very simple HTTPS proxy server lib written in Scala 2.12 with no external dependencies." | ||
ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")) | ||
ThisBuild / homepage := Some(url("https://github.com/erikvanzijst/scala_tlsproxy")) | ||
|
||
ThisBuild / pomIncludeRepository := { _ => false } | ||
ThisBuild / publishTo := { | ||
val nexus = "https://s01.oss.sonatype.org/" | ||
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
} | ||
ThisBuild / publishMavenStyle := true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2") |
2 changes: 1 addition & 1 deletion
2
src/main/scala/tlsproxy/EchoHandler.scala → ...kvanzijst/scalatlsproxy/EchoHandler.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/scala/io/github/erikvanzijst/scalatlsproxy/Main.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.github.erikvanzijst.scalatlsproxy | ||
|
||
import ch.qos.logback.classic.Level | ||
import com.typesafe.scalalogging.StrictLogging | ||
import org.slf4j.LoggerFactory | ||
|
||
object Main extends StrictLogging { | ||
|
||
// Suppress debug when running from the shell | ||
Seq("io.github.erikvanzijst.scalatlsproxy.TlsProxyHandler", | ||
"io.github.erikvanzijst.scalatlsproxy.ServerHandler", | ||
"io.github.erikvanzijst.scalatlsproxy.Pipe") | ||
.map(LoggerFactory.getLogger) | ||
.map(_.asInstanceOf[ch.qos.logback.classic.Logger]) | ||
.foreach(_.setLevel(Level.INFO)) | ||
|
||
def main(args: Array[String]): Unit = new TlsProxy(3128).run() | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/scala/tlsproxy/Pipe.scala → ...hub/erikvanzijst/scalatlsproxy/Pipe.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/scala/tlsproxy/ServerHandler.scala → ...anzijst/scalatlsproxy/ServerHandler.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
src/main/scala/tlsproxy/TlsProxy.scala → ...erikvanzijst/scalatlsproxy/TlsProxy.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.