1- import org .scalajs .sbtplugin .cross .CrossProject
21import sbt .Keys ._
32import LDMLTasks ._
43
@@ -8,10 +7,10 @@ lazy val downloadFromZip: TaskKey[Unit] =
87
98val commonSettings : Seq [Setting [_]] = Seq (
109 cldrVersion := " 31" ,
11- version := s " 0.3.5 -cldr ${cldrVersion.value}" ,
10+ version := s " 0.3.6 -cldr ${cldrVersion.value}" ,
1211 organization := " io.github.cquiroz" ,
1312 scalaVersion := " 2.11.11" ,
14- crossScalaVersions := Seq (" 2.10.4 " , " 2.11.11" , " 2.12.2" ),
13+ crossScalaVersions := Seq (" 2.10.6 " , " 2.11.11" , " 2.12.2" ),
1514 scalacOptions ++= Seq (" -deprecation" , " -feature" ),
1615 scalacOptions := {
1716 CrossVersion .partialVersion(scalaVersion.value) match {
@@ -69,7 +68,8 @@ lazy val scalajs_locales: Project = project.in(file("."))
6968 )
7069 .aggregate(coreJS, coreJVM, testSuiteJS, testSuiteJVM)
7170
72- lazy val core : CrossProject = crossProject.crossType(CrossType .Pure ).
71+ lazy val core = crossProject.
72+ crossType(CrossType .Pure ).
7373 settings(commonSettings : _* ).
7474 settings(
7575 name := " scala-java-locales" ,
@@ -96,7 +96,7 @@ lazy val coreJS: Project = core.js
9696 .settings(
9797 scalacOptions ++= {
9898 val tagOrHash =
99- if (isSnapshot.value) sys.process.Process (" git rev-parse HEAD" ).lines_!.head
99+ if (isSnapshot.value) sys.process.Process (" git rev-parse HEAD" ).lines_!.head
100100 else s " v ${version.value}"
101101 (sourceDirectories in Compile ).value.map { dir =>
102102 val a = dir.toURI.toString
@@ -108,12 +108,7 @@ lazy val coreJS: Project = core.js
108108
109109lazy val coreJVM : Project = core.jvm
110110
111- lazy val testSuite : CrossProject = CrossProject (
112- jvmId = " testSuiteJVM" ,
113- jsId = " testSuite" ,
114- base = file(" testSuite" ),
115- crossType = CrossType .Full ).
116- jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin )).
111+ lazy val testSuite = crossProject.
117112 settings(commonSettings : _* ).
118113 settings(
119114 publish := {},
@@ -127,10 +122,11 @@ lazy val testSuite: CrossProject = CrossProject(
127122 parallelExecution in Test := false ,
128123 name := " scala-java-locales testSuite on JS" ,
129124 libraryDependencies ++= Seq (
125+ " com.novocode" % " junit-interface" % " 0.9" % " test" ,
130126 " io.github.cquiroz" %% " macroutils" % " 0.0.1" % " provided"
131127 )
132128 ).
133- jsConfigure(_.dependsOn(coreJS)).
129+ jsConfigure(_.dependsOn(coreJS, macroUtils )).
134130 jvmSettings(
135131 // Fork the JVM test to ensure that the custom flags are set
136132 fork in Test := true ,
@@ -143,7 +139,7 @@ lazy val testSuite: CrossProject = CrossProject(
143139 " io.github.cquiroz" %% " macroutils" % " 0.0.1" % " provided"
144140 )
145141 ).
146- jvmConfigure(_.dependsOn(coreJVM))
142+ jvmConfigure(_.dependsOn(coreJVM, macroUtils ))
147143
148144lazy val macroUtils = project.in(file(" macroUtils" )).
149145 settings(commonSettings).
0 commit comments