-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
62 lines (59 loc) · 2.21 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
val projectName = "proxyutils"
lazy val commonSettings = Seq(
organization := "com.github.karasiq",
version := "2.0.14",
isSnapshot := version.value.endsWith("SNAPSHOT"),
scalaVersion := "2.12.3",
crossScalaVersions := Seq("2.11.11", scalaVersion.value),
resolvers += "softprops-maven" at "http://dl.bintray.com/content/softprops/maven"
// resolvers += Resolver.sonatypeRepo("snapshots")
)
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishArtifact in Test := false,
pomIncludeRepository := { _ ⇒ false },
licenses := Seq("Apache License, Version 2.0" → url("http://opensource.org/licenses/Apache-2.0")),
homepage := Some(url(s"https://github.com/Karasiq/$projectName")),
pomExtra := <scm>
<url>[email protected]:Karasiq/{projectName}.git</url>
<connection>scm:git:[email protected]:Karasiq/{projectName}.git</connection>
</scm>
<developers>
<developer>
<id>karasiq</id>
<name>Piston Karasiq</name>
<url>https://github.com/Karasiq</url>
</developer>
</developers>
)
lazy val proxyutils = (project in file("."))
.settings(
commonSettings,
publishSettings,
name := projectName,
libraryDependencies ++= {
val akkaV = "2.5.4"
val akkaHttpV = "10.0.10"
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,
"com.typesafe.akka" %% "akka-testkit" % akkaV % "test",
"com.typesafe.akka" %% "akka-stream-testkit" % akkaV % "test",
"com.github.karasiq" %% "commons-akka" % "1.0.7",
"com.github.karasiq" %% "cryptoutils" % "1.4.3",
"org.scalatest" %% "scalatest" % "3.0.4" % "test",
"org.bouncycastle" % "bcprov-jdk15on" % "1.58" % "provided",
"org.bouncycastle" % "bcpkix-jdk15on" % "1.58" % "provided"
)
}
)