-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
99 lines (89 loc) · 2.87 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import sbt.Keys.{homepage, scmInfo}
import sbt.url
ThisBuild / organization := "io.onema"
ThisBuild / version := "0.6.0"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / parallelExecution in Test := false
val awsSdkVersion = "1.11.515"
val extensionsVersion = "0.1.0"
lazy val vff = (project in file("."))
.settings(skip in publish := true)
.aggregate(vffCore, vffS3Adapter, vffTest)
publishArtifact in vff := false
lazy val vffCore = (project in file("vff"))
.settings(
name := "vff",
commonPublishSettings,
libraryDependencies ++= {
Seq(
"io.onema" %% "stream-extensions" % extensionsVersion,
"io.onema" %% "string-extensions" % extensionsVersion,
"com.github.pathikrit" %% "better-files" % "3.7.1",
// Logging
"com.typesafe.scala-logging" %% "scala-logging" % "3.7.2",
)
}
)
lazy val vffS3Adapter = (project in file("vff-s3-adapter"))
.settings(
name := "vff-s3-adapter",
commonPublishSettings,
libraryDependencies ++= {
Seq(
"com.amazonaws" % "aws-java-sdk-s3" % awsSdkVersion
)
}
).dependsOn(vffCore)
lazy val vffTest = (project in file("vff-test"))
.settings(
name := "vff-test",
publishTo := Some(Resolver.file("unused repo", file("foo/bar"))),
publishArtifact := false,
libraryDependencies ++= {
Seq(
// Testing
"org.scalatest" % "scalatest_2.12" % "3.0.5" % Test,
"org.scalamock" %% "scalamock" % "4.1.0" % Test
)
}
).dependsOn(vffS3Adapter, vffCore)
// Maven Central Repo boilerplate configuration
pomIncludeRepository := { _ => false }
developers := List(
Developer(
id = "onema",
name = "Juan Manuel Torres",
email = "[email protected]",
url = url("https://github.com/onema/")
)
)
// Maven Central Repo boilerplate configuration
lazy val commonPublishSettings = Seq(
// publishTo := Some("Onema Snapshots" at "s3://s3-us-east-1.amazonaws.com/ones-deployment-bucket/snapshots"),
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")
},
publishMavenStyle := true,
pomIncludeRepository := { _ => false },
licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")),
homepage := Some(url("https://github.com/onema/VFF")),
scmInfo := Some(
ScmInfo(
url("https://github.com/onema/vff"),
"scm:[email protected]:onema/VFF.git"
)
),
developers := List(
Developer(
id = "onema",
name = "Juan Manuel Torres",
email = "[email protected]",
url = url("https://github.com/onema/")
)
),
publishArtifact in Test := false
)