-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
49 lines (36 loc) · 1.16 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
import Dependencies.Versions
import org.jmotor.sbt.plugin.ComponentSorter
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
name := "scala-utils"
organization := "org.jmotor"
enablePlugins(Dependencies, Publishing)
scalaVersion := Versions.scala
crossScalaVersions := Seq(Versions.scala212, Versions.scala)
dependencyUpgradeModuleNames := Map(
"scala-library" -> "scala",
"undertow-.*" -> "undertow"
)
dependencyUpgradeComponentSorter := ComponentSorter.ByAlphabetically
lazy val utf8: String = "UTF-8"
lazy val javaVersion: String = "1.8"
Compile / compile / javacOptions ++= Seq(
"-source", javaVersion, "-target", javaVersion, "-encoding", utf8, "-deprecation"
)
Compile / doc / javacOptions ++= Seq(
"-linksource", "-source", javaVersion, "-docencoding", utf8, "-charset", utf8, "-encoding", utf8, "-nodeprecated"
)
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
pushChanges
)