-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.sbt
63 lines (58 loc) · 1.68 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
name := "Soda Time"
val scala211Version = "2.11.8"
val scala210Version = "2.10.6"
scalaVersion in ThisBuild := scala211Version
crossScalaVersions in ThisBuild := Seq(scala211Version, scala210Version)
lazy val root = project
.in(file("."))
.aggregate(sodatimeJS, sodatimeJVM)
.settings(
publish := {},
publishLocal := {}
)
lazy val sodatime = crossProject
.in(file("."))
.settings(
name := "soda-time",
version := "0.0.1-SNAPSHOT",
organization := "org.mdedetrich",
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishArtifact in Test := false,
pomIncludeRepository := { _ =>
false
},
pomExtra := <url>https://github.com/mdedetrich/soda-time</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://www.opensource.org/licenses/bsd-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:mdedetrich/soda-time.git</url>
<connection>scm:git:[email protected]:mdedetrich/soda-time.git</connection>
</scm>
<developers>
<developer>
<id>mdedetrich</id>
<name>Matthew de Detrich</name>
<email>[email protected]</email>
</developer>
</developers>
)
.jvmSettings(
// Add JVM-specific settings here
)
.jsSettings(
// Add JS-specific settings here
)
lazy val sodatimeJVM = sodatime.jvm
lazy val sodatimeJS = sodatime.js