-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
65 lines (58 loc) · 1.6 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
import ReleaseTransformations.*
/** Versions */
val EnvisiaScalaVersion = "2.12.18"
val PlayVersion = "3.0.5"
val ScalaFmtVersion = "2.4.6"
name := "sbt-envisia-play"
organization := "de.envisia.sbt"
scalaVersion := EnvisiaScalaVersion
// publishing settings
publishMavenStyle := true
pomIncludeRepository := (_ => false)
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
homepage := Some(url("https://www.envisia.de"))
scmInfo := Some(
ScmInfo(
url("https://github.com/envisia/sbt-envisia-play"),
"scm:[email protected]:envisia/sbt-envisia-play.git"
)
)
developers := List(
Developer(
id = "schmitch",
name = "Christian Schmitt",
email = "[email protected]",
url = url("https://github.com/envisia")
)
)
publishTo := Some("envisia" at "https://nexus.envisia.io/repository/public/")
sbtPlugin := true
addSbtPlugin("org.playframework" % "sbt-plugin" % PlayVersion)
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % ScalaFmtVersion)
enablePlugins(BuildInfoPlugin)
buildInfoPackage := "de.envisia.sbt.info"
buildInfoKeys := Seq[BuildInfoKey](
name,
version,
scalaVersion,
sbtVersion,
"playVersion" -> PlayVersion,
)
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
pushChanges
)
ThisBuild / libraryDependencySchemes ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
)