-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
72 lines (63 loc) · 1.95 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
name := "jira4s"
sonatypeProfileName := "tech.ignission"
lazy val commonSettings = Seq(
version := "0.3.0-SNAPSHOT",
scalaVersion := "2.13.1",
organization := "tech.ignission"
)
lazy val noPublishSettings = Seq(
publish := {},
publishLocal := {},
publishArtifact := false,
skip in publish := true
)
isSnapshot := version.value endsWith "SNAPSHOT"
lazy val publishPackages = Seq(
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)
},
// publishConfiguration := publishConfiguration.value.withOverwrite(true),
// publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true),
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
homepage := Some(url("https://github.com/ignission")),
licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT")),
scmInfo := Some(ScmInfo(url("https://github.com/ignission/jira4s"), "scm:git:[email protected]/ignission/jira4s.git")),
developers := List(
Developer(
id = "shomatan",
name = "Shoma Nishitateno",
email = "[email protected]",
url = url("https://github.com/shomatan")
)
)
)
lazy val core = (project in file("jira4s-core"))
.settings(commonSettings)
.settings(
name := "jira4s-core",
publishPackages
)
lazy val akka = (project in file("jira4s-akka"))
.settings(commonSettings)
.settings(
name := "jira4s-akka",
publishPackages
)
.dependsOn(core)
lazy val test = (project in file("test"))
.settings(commonSettings)
.dependsOn(core, akka)
lazy val jira4s = (project in file("."))
.settings(
moduleName := "root",
noPublishSettings
)
.aggregate(core, akka)