|
| 1 | +import sbt.Keys._ |
| 2 | +import org.scalajs.sbtplugin.cross.CrossProject |
| 3 | + |
| 4 | +lazy val root: Project = project.in(file(".")). |
| 5 | + enablePlugins(ScalaJSPlugin) |
| 6 | + |
| 7 | +lazy val testSuite = CrossProject( |
| 8 | + jvmId = "testSuiteJVM", |
| 9 | + jsId = "testSuite", |
| 10 | + base = file("testSuite"), |
| 11 | + crossType = CrossType.Full |
| 12 | +). |
| 13 | + jsConfigure(_ .enablePlugins(ScalaJSJUnitPlugin)). |
| 14 | + settings( |
| 15 | + testOptions += |
| 16 | + Tests.Argument(TestFramework("com.novocode.junit.JUnitFramework"), "-v", "-a") |
| 17 | + ). |
| 18 | + jsSettings( |
| 19 | + name := "java.time testSuite on JS" |
| 20 | + ). |
| 21 | + jvmSettings( |
| 22 | + name := "java.time testSuite on JVM", |
| 23 | + libraryDependencies += |
| 24 | + "com.novocode" % "junit-interface" % "0.9" % "test" |
| 25 | + ) |
| 26 | + |
| 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)) |
0 commit comments