-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
64 lines (52 loc) · 2.21 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
import Common._
import Templates._
import sbtrelease.ReleasePlugin.autoImport.{ReleaseStep, _}
import sbtrelease.ReleaseStateTransformations._
name := "auth-api"
scalaVersion := scalaVersionString
organization := organisationString
scalafmtConfig in ThisBuild := Some(file(".scalafmt"))
concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)
parallelExecution in ThisBuild := false
// Projects
lazy val authCore = Project(id = "auth-core", base = file("modules/auth/auth-core"))
.configure(makeLibrary)
.settings(libraryDependencies ++= Dependencies.authCoreDependencies)
lazy val authDirect = Project(id = "auth-direct", base = file("modules/auth/auth-direct"))
.configure(makeLibrary)
.dependsOn(authCore % "compile->compile;test->test")
.settings(libraryDependencies ++= Dependencies.authDirectDependencies)
lazy val authApi = Project(id = "auth-api", base = file("modules/auth/auth-api"))
.configure(makeRestApi)
.dependsOn(authDirect % "compile->compile;test->test")
.settings(libraryDependencies ++= Dependencies.authApiDependencies)
lazy val authHttp = Project(id = "auth-http", base = file("modules/auth/auth-http"))
.configure(makeLibrary)
.dependsOn(authCore % "compile->compile;test->test")
.settings(libraryDependencies ++= Dependencies.authHttpDependencies)
lazy val barApi = Project(id = "bar-api", base = file("modules/bar/bar-api"))
.configure(makeRestApi)
.dependsOn(authHttp % "compile->compile;test->test")
.settings(libraryDependencies ++= Dependencies.barApiDependencies)
lazy val root = Project(id = "root", base = file("."))
.aggregate(authDirect, authHttp, authCore, authApi, barApi)
.enablePlugins(UniversalPlugin)
.settings(
publishArtifact := false, // root itself is not artifact, only subprojects
releaseVersionBump := sbtrelease.Version.Bump.Bugfix,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
releaseStepTask(publish in Universal in barApi),
releaseStepTask(publish in Universal in authApi),
setNextVersion,
commitNextVersion,
pushChanges
)
)
enablePlugins(GitBranchPrompt)