forked from findify/s3mock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
79 lines (63 loc) · 2.26 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
75
76
77
78
79
name := "s3mock"
version := "0.2.5"
organization := "io.findify"
scalaVersion := "2.12.4"
crossScalaVersions := Seq("2.11.11", "2.12.4")
val akkaVersion = "2.5.11"
licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT"))
homepage := Some(url("https://github.com/findify/s3mock"))
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-http" % "10.1.0",
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % "test",
"org.scala-lang.modules" %% "scala-xml" % "1.1.0",
"com.github.pathikrit" %% "better-files" % "3.4.0",
"com.typesafe.scala-logging" %% "scala-logging" % "3.8.0",
"com.amazonaws" % "aws-java-sdk-s3" % "1.11.294",
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test",
"org.iq80.leveldb" % "leveldb" % "0.10",
"com.lightbend.akka" %% "akka-stream-alpakka-s3" % "0.17" % "test"
)
parallelExecution in Test := false
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")
}
pomExtra := (
<scm>
<url>git@github.com:findify/s3mock.git</url>
<connection>scm:git:git@github.com:findify/s3mock.git</connection>
</scm>
<developers>
<developer>
<id>romangrebennikov</id>
<name>Roman Grebennikov</name>
<url>http://www.dfdx.me</url>
</developer>
</developers>)
enablePlugins(DockerPlugin)
assemblyJarName in assembly := "s3mock.jar"
mainClass in assembly := Some("io.findify.s3mock.Main")
test in assembly := {}
dockerfile in docker := new Dockerfile {
from("openjdk:9.0.1-11-jre-slim")
expose(8001)
add(assembly.value, "/app/s3mock.jar")
entryPoint("java", "-Xmx128m", "-jar", "--add-modules", "java.xml.bind", "/app/s3mock.jar")
}
imageNames in docker := Seq(
ImageName(s"findify/s3mock:${version.value.replaceAll("\\+", "_")}"),
ImageName(s"findify/s3mock:latest")
)
/*enablePlugins(JavaAppPackaging)
maintainer in Docker := "S3mock"
packageSummary in Docker := "S3Mock"
packageDescription := "Mock Service For S3"
dockerUpdateLatest := true
dockerExposedPorts := Seq(8001)
*/