-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
74 lines (69 loc) · 2.47 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
lazy val projectSettings = Seq(
name := "proxychain",
organization := "com.github.karasiq",
isSnapshot := version.value.endsWith("SNAPSHOT"),
scalaVersion := "2.12.6",
scalacOptions ++= Seq("-target:jvm-1.8"),
resolvers += "softprops-maven" at "http://dl.bintray.com/content/softprops/maven",
// resolvers += Resolver.sonatypeRepo("snapshots"),
libraryDependencies ++= {
val akkaV = "2.5.13"
val akkaHttpV = "10.1.3"
Seq(
"commons-io" % "commons-io" % "2.5",
"org.apache.httpcomponents" % "httpclient" % "4.5.3",
"com.typesafe.akka" %% "akka-actor" % akkaV,
"com.typesafe.akka" %% "akka-stream" % akkaV,
"com.typesafe.akka" %% "akka-http" % akkaHttpV,
"org.bouncycastle" % "bcprov-jdk15on" % "1.58",
"org.bouncycastle" % "bcpkix-jdk15on" % "1.58",
"com.github.karasiq" %% "cryptoutils" % "1.4.3",
"com.github.karasiq" %% "proxyutils" % "2.0.13",
"com.github.karasiq" %% "coffeescript" % "1.0.2"
)
},
scalacOptions ++= Seq("-optimize", "-Xelide-below", "0"),
mainClass in Compile := Some("com.karasiq.proxychain.app.Boot"),
licenses := Seq("Apache License, Version 2.0" → url("http://opensource.org/licenses/Apache-2.0"))
)
lazy val releaseSettings = Seq(
releaseCrossBuild := false,
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseProcess := {
import ReleaseTransformations._
Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
// runTest,
setReleaseVersion,
// publishArtifacts,
releaseStepTask(packageBin in Universal),
releaseStepTask(stage),
InnoSetupReleaseSteps.compileISPackage,
// releaseStepCommand("sonatypeRelease"),
commitReleaseVersion,
tagRelease,
pushChanges,
releaseStepInputTask(githubRelease),
setNextVersion,
commitNextVersion,
pushChanges
)
}
)
lazy val packageUploadSettings = Seq(
ghreleaseRepoOrg := "Karasiq",
ghreleaseRepoName := name.value,
ghreleaseAssets := Seq(
target.value / "universal" / s"${name.value}-${version.value}.zip",
target.value / "iss" / s"${name.value}-${version.value}.exe"
),
ghreleaseNotes := { tagName ⇒
SimpleReader.readLine(s"Input release notes for $tagName: ").getOrElse("")
}
// ghreleaseTitle := { tagName ⇒ tagName.toString }
)
lazy val `proxychain` = (project in file("."))
.settings(projectSettings, releaseSettings, packageUploadSettings)
.enablePlugins(JavaAppPackaging)