-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
59 lines (47 loc) · 1.72 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
import sbt.Keys.{semanticdbEnabled, semanticdbVersion}
sbtPlugin := true
organization := "net.bzzt"
name := "sbt-reproducible-builds"
startYear := Some(2017)
homepage := Some(url("https://github.com/raboof/sbt-reproducible-builds"))
licenses := List(("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.txt")))
developers := List(
Developer(
"raboof",
"Arnout Engelen",
url("https://arnout.engelen.eu")
)
)
scalaVersion := "2.12.20"
/** should work with later sbt versions as well (tested at least with 1.4.x)
*/
sbtVersion := "1.2.7"
val sbtPgpVersion = "1.1.2"
enablePlugins(ReproducibleBuildsPlugin)
enablePlugins(SbtPlugin)
enablePlugins(ScriptedPlugin)
libraryDependencies += "net.bzzt" % "reproducible-builds-jvm-stripper" % "0.10"
libraryDependencies += "io.spray" %% "spray-json" % "1.3.6"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % "test"
// Optional integration:
addSbtPlugin("com.github.sbt" %% "sbt-native-packager" % "1.11.1" % Provided)
addSbtPlugin("io.crashbox" %% "sbt-gpg" % "0.2.1" % Provided)
addSbtPlugin("com.eed3si9n" %% "sbt-assembly" % "2.3.1" % Provided)
// addSbtPlugin("com.jsuereth" % "sbt-pgp" % sbtPgpVersion % Provided)
scriptedLaunchOpts :=
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
scriptedBufferLog := false
// scalafix specific settings
inThisBuild(
List(
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalacOptions ++= Seq(
"-Ywarn-unused"
)
)
)
addCommandAlias("applyCodeStyle", ";+clean ;scalafixAll ;scalafmtAll; scalafmtSbt")
addCommandAlias("checkCodeStyle", ";+clean ;scalafixAll --check ;scalafmtCheckAll; scalafmtSbtCheck")