This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
104 lines (91 loc) · 2.73 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name := "backlog4s"
lazy val scala212 = "2.12.10"
lazy val scala213 = "2.13.4"
lazy val supportedScalaVersions = List(scala213, scala212)
ThisBuild / organization := "com.github.chaabaj"
ThisBuild / version := "0.8.1"
ThisBuild / scalaVersion := scala212
lazy val commonScalacOptions = Seq(
"-deprecation"
)
lazy val commonSettings = Seq(
scalacOptions := commonScalacOptions
)
lazy val noPublishSettings = Seq(
publish := {},
publishLocal := {},
publishArtifact := false,
skip in publish := true
)
isSnapshot := version.value endsWith "SNAPSHOT"
lazy val publishPackages = Seq(
useGpg := true,
publishMavenStyle := true,
publishArtifact in Test := false,
publishTo := {
val realm = "Sonatype Nexus Repository Manager"
val staging = "https://oss.sonatype.org/content/repositories/snapshots"
val release = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
if (isSnapshot.value)
Some(realm at staging)
else
Some(realm at release)
},
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
homepage := Some(url("https://github.com/chaabaj")),
licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT")),
scmInfo := Some(ScmInfo(url("https://github.com/chaabaj/backlog4s"), "scm:git:[email protected]/chaabaj/backlog4s.git"))
)
lazy val backlog4sCore = (project in file("backlog4s-core"))
.settings(commonSettings)
.settings(
name := "backlog4s-core",
crossScalaVersions := supportedScalaVersions,
publishPackages
)
lazy val backlog4sAkka = (project in file("backlog4s-akka"))
.settings(commonSettings)
.settings(
name := "backlog4s-akka"
)
.dependsOn(backlog4sCore)
.settings(
publishPackages,
crossScalaVersions := supportedScalaVersions
)
lazy val backlog4sHammock = (project in file("backlog4s-hammock"))
.settings(commonSettings)
.settings(
name := "backlog4s-hammock",
// hammock-core doesn't support Scala 2.13
crossScalaVersions := List(scala212),
publishPackages
)
.dependsOn(backlog4sCore)
lazy val backlog4sTest = (project in file("backlog4s-test"))
.settings(
commonSettings,
noPublishSettings,
crossScalaVersions := List(scala212)
)
.dependsOn(backlog4sCore, backlog4sAkka, backlog4sHammock)
lazy val backlog4sGraphQl = (project in file("backlog4s-graphql"))
.settings(commonSettings)
.settings(
name := "backlog4s-graphql",
crossScalaVersions := supportedScalaVersions,
publishPackages
)
.dependsOn(backlog4sCore, backlog4sAkka)
lazy val backlog4s = (project in file("."))
.settings(
moduleName := "root",
crossScalaVersions := Nil,
noPublishSettings
)
.aggregate(
backlog4sCore,
backlog4sAkka,
backlog4sHammock,
backlog4sGraphQl
)