1
1
import sbt .Keys ._
2
2
import org .scalajs .sbtplugin .cross .CrossProject
3
3
4
+ val commonSettings : Seq [Setting [_]] = Seq (
5
+ version := " 0.0.1-SNAPSHOT" ,
6
+ organization := " org.scala-js" ,
7
+ scalaVersion := " 2.11.7" ,
8
+ scalacOptions ++= Seq (" -deprecation" , " -feature" , " -Xfatal-warnings" ),
9
+ homepage := Some (url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttp://scala-js.org/%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E)),
10
+ licenses += (" MIT" , url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttp://opensource.org/licenses/mit-license.php%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E))
11
+ )
12
+
4
13
lazy val root : Project = project.in(file(" ." )).
5
- enablePlugins(ScalaJSPlugin )
14
+ enablePlugins(ScalaJSPlugin ).
15
+ settings(commonSettings).
16
+ settings(
17
+ name := " scalajs-java-time"
18
+ )
6
19
7
20
lazy val testSuite = CrossProject (
8
21
jvmId = " testSuiteJVM" ,
@@ -11,32 +24,20 @@ lazy val testSuite = CrossProject(
11
24
crossType = CrossType .Full
12
25
).
13
26
jsConfigure(_ .enablePlugins(ScalaJSJUnitPlugin )).
27
+ settings(commonSettings : _* ).
14
28
settings(
15
29
testOptions +=
16
30
Tests .Argument (TestFramework (" com.novocode.junit.JUnitFramework" ), " -v" , " -a" )
17
31
).
18
32
jsSettings(
19
33
name := " java.time testSuite on JS"
20
34
).
35
+ jsConfigure(_.dependsOn(root)).
21
36
jvmSettings(
22
37
name := " java.time testSuite on JVM" ,
23
38
libraryDependencies +=
24
39
" com.novocode" % " junit-interface" % " 0.9" % " test"
25
40
)
26
41
27
- lazy val testSuiteJS = testSuite.js.dependsOn(root)
28
- lazy val testSuiteJVM = testSuite.jvm.dependsOn(root)
29
-
30
- name := " scalajs-java-time"
31
-
32
- version := " 0.0.1-SNAPSHOT"
33
-
34
- organization := " org.scala-js"
35
-
36
- scalaVersion := " 2.11.7"
37
-
38
- scalacOptions ++= Seq (" -deprecation" , " -feature" , " -Xfatal-warnings" )
39
-
40
- homepage := Some (url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttp://scala-js.org/%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E))
41
-
42
- licenses += (" MIT" , url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttp://opensource.org/licenses/mit-license.php%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E))
42
+ lazy val testSuiteJS = testSuite.js
43
+ lazy val testSuiteJVM = testSuite.jvm
0 commit comments