forked from scalahub/Kiosk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
48 lines (41 loc) · 1.8 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
name := "kiosk"
version := "1.0"
updateOptions := updateOptions.value.withLatestSnapshots(false)
scalaVersion := "2.13.12"
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-collection-compat" % "2.11.0",
"org.ergoplatform" %% "ergo-appkit" % "5.0.4",
"com.squareup.okhttp3" % "mockwebserver" % "4.12.0" % Test,
"org.scalatest" %% "scalatest" % "3.2.18" % Test,
"org.scalatestplus" %% "scalacheck-1-17" % "3.2.18.0" % Test,
"org.scalacheck" %% "scalacheck" % "1.17.0" % Test,
"org.mockito" % "mockito-core" % "5.11.0" % Test
)
resolvers ++= Seq(
"Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/",
"SonaType" at "https://oss.sonatype.org/content/groups/public",
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
)
lazy val root = (project in file("."))
.settings(
updateOptions := updateOptions.value.withLatestSnapshots(false),
assembly / assemblyMergeStrategy := {
case PathList("reference.conf") => MergeStrategy.concat
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}
)
/* PUBLISHING */
ThisBuild / publishMavenStyle := true
Test / publishArtifact := true
// PGP key for signing a release build published to sonatype
// signing is done by sbt-pgp plugin
// how to generate a key - https://central.sonatype.org/pages/working-with-pgp-signatures.html
pgpPublicRing := file("ci/pubring.asc")
pgpSecretRing := file("ci/secring.asc")
pgpPassphrase := sys.env.get("PGP_PASSPHRASE").map(_.toArray)
usePgpKeyHex("D78982639AD538EF361DEC6BF264D529385A0333")
// prefix version with "-SNAPSHOT" for builds without a git tag
ThisBuild / dynverSonatypeSnapshots := true
// use "-" instead of default "+"
ThisBuild / dynverSeparator := "-"