@@ -2,15 +2,15 @@ ThisBuild / scalaVersion := "3.1.3"
2
2
ThisBuild / crossScalaVersions := Seq ((ThisBuild / scalaVersion).value, " 2.13.8" )
3
3
4
4
lazy val root = project.in(file(" ." ))
5
- .aggregate(collectionContrib.jvm, collectionContrib.js)
5
+ .aggregate(collectionContrib.jvm, collectionContrib.js, collectionContrib.native )
6
6
.settings(
7
7
publish / skip := true ,
8
8
// With CrossType.Pure, the root project also picks up the sources in `src`
9
9
Compile / unmanagedSourceDirectories := Nil ,
10
10
Test / unmanagedSourceDirectories := Nil ,
11
11
)
12
12
13
- lazy val collectionContrib = crossProject(JVMPlatform , JSPlatform )
13
+ lazy val collectionContrib = crossProject(JVMPlatform , JSPlatform , NativePlatform )
14
14
.crossType(CrossType .Pure )
15
15
.in(file(" ." ))
16
16
.settings(ScalaModulePlugin .scalaModuleSettings)
@@ -21,7 +21,7 @@ lazy val collectionContrib = crossProject(JVMPlatform, JSPlatform)
21
21
Compile / compile / scalacOptions ++= {
22
22
CrossVersion .partialVersion(scalaVersion.value) match {
23
23
case Some ((2 , _)) => Seq (" -opt-warnings" , " -Werror" , " -Wconf:origin=scala.collection.IterableOps.toIterable:s" )
24
- case _ => Seq (" -Xfatal-warnings" , " -scala-output-version:3.0 " , " - Wconf:cat=deprecation:s" )
24
+ case _ => Seq (" -Xfatal-warnings" , " -Wconf:cat=deprecation:s" )
25
25
}
26
26
},
27
27
Compile / doc / scalacOptions ++= {
@@ -42,6 +42,12 @@ lazy val collectionContrib = crossProject(JVMPlatform, JSPlatform)
42
42
// Scala.js cannot run forked tests
43
43
Test / fork := false
44
44
)
45
+ .nativeEnablePlugins(ScalaNativeJUnitPlugin )
46
+ .nativeSettings(
47
+ // Scala native cannot run forked tests
48
+ Test / fork := false
49
+ )
45
50
46
- lazy val collectionContribJVM = collectionContrib.jvm
47
- lazy val collectionContribJS = collectionContrib.js
51
+ lazy val collectionContribJVM = collectionContrib.jvm
52
+ lazy val collectionContribJS = collectionContrib.js
53
+ lazy val collectionContribNative = collectionContrib.native
0 commit comments