-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
58 lines (51 loc) · 1.79 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
organization in ThisBuild := "io.methvin.play"
organizationName in ThisBuild := "Greg Methvin"
startYear in ThisBuild := Some(2018)
licenses in ThisBuild := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html"))
homepage in ThisBuild := Some(url("https://github.com/gmethvin/play-autoconfig"))
scmInfo in ThisBuild := Some(
ScmInfo(url("https://github.com/gmethvin/play-autoconfig"), "scm:[email protected]:gmethvin/play-autoconfig.git")
)
developers in ThisBuild := List(
Developer("gmethvin", "Greg Methvin", "[email protected]", new URL("https://github.com/gmethvin"))
)
val PlayVersion = "2.8.0"
scalaVersion in ThisBuild := "2.13.3"
crossScalaVersions in ThisBuild := Seq("2.12.10", scalaVersion.value)
lazy val `autoconfig-macros` = (project in file("macros"))
.enablePlugins(AutomateHeaderPlugin)
.settings(
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play" % PlayVersion,
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scalatest" %% "scalatest" % "3.2.2" % Test
)
)
lazy val root = (project in file("."))
.settings(
PgpKeys.publishSigned := {},
publish := {},
publishLocal := {},
publishArtifact := false,
skip in publish := true
)
.aggregate(`autoconfig-macros`)
scalafmtOnCompile in ThisBuild := true
publishMavenStyle in ThisBuild := true
publishTo in ThisBuild := sonatypePublishToBundle.value
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)