-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
56 lines (50 loc) · 1.52 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
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
lazy val projectSettings = Seq(
name := "number-series-solver",
organization := "com.github.mkroli",
scalaVersion := "2.13.1"
)
lazy val projectDependencies = Seq(
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-parallel-collections" % "0.2.0",
"org.scala-lang.modules" %% "scala-swing" % "2.1.1",
"com.github.scopt" %% "scopt" % "4.0.0-RC2"
)
)
lazy val projectBuildInfoSettings = Seq(
buildInfoKeys := Seq[BuildInfoKey](name, version),
buildInfoPackage := "com.github.mkroli"
)
lazy val projectAssemblySettings = Seq(
assemblyJarName in assembly := s"${name.value}-${version.value}.jar",
mainClass in assembly := Some("com.github.mkroli.NumberSeriesSolverWindow")
)
lazy val projectReleaseSettings = Seq(
ghreleaseRepoOrg := "mkroli",
ghreleaseAssets := Seq(assembly.value),
ghreleaseNotes := (_ => ""),
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
pushChanges,
releaseStepInputTask(githubRelease),
setNextVersion,
commitNextVersion,
pushChanges
)
)
lazy val root = (project in file("."))
.enablePlugins(BuildInfoPlugin)
.settings(projectSettings)
.settings(projectDependencies)
.settings(projectBuildInfoSettings)
.settings(projectAssemblySettings)
.settings(projectReleaseSettings)
.settings(
Compile / internationalisationVerifyLocales += "de"
)