forked from scala-js/scala-js-java-time
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
57 lines (53 loc) · 1.77 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
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
lazy val root = crossProject(JVMPlatform, NativePlatform)
.in(file("."))
.enablePlugins(ScalaNativePlugin)
.settings(publishSettings)
.settings(
organization := "org.akka-js",
name := "scalanative-java-time",
version := "0.0.2",
scalaVersion := "2.11.12",
scalacOptions += "-target:jvm-1.8",
nativeLinkStubs := true,
testFrameworks += new TestFramework("utest.runner.Framework"),
libraryDependencies += "com.lihaoyi" %%% "utest" % "0.6.3" % "test"
)
lazy val rootJVM = root.jvm
lazy val rootNative = root.native
ThisBuild / scalafmtOnCompile := true
lazy val publishSettings = Seq(
pomExtra := {
<url>https://github.com/akka-js/scalanative-java-time</url>
<licenses>
<license>
<name>BSD New</name>
<url>https://github.com/akka-js/scalanative-java-time/blob/master/LICENSE.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:github.com/akka-js/scalanative-java-time</connection>
<developerConnection>scm:git:[email protected]:akka-js/scalanative-java-time</developerConnection>
<url>github.com/akka-js/scalanative-java-time</url>
</scm>
<developers>
<developer>
<id>andreaTP</id>
<name>Andrea Peruffo</name>
<url>https://github.com/andreaTP/</url>
</developer>
</developers>
},
publishMavenStyle := true,
pomIncludeRepository := { x =>
false
},
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")
},
credentials += Credentials(Path.userHome / ".ivy2" / "sonatype.credentials")
)