@@ -4,7 +4,12 @@ ThisBuild / startYear := Some(2004)
44// I thought we could declare these in `ThisBuild` scope but no :-/
55val commonSettings = Seq (
66 versionScheme := Some (" early-semver" ),
7- versionPolicyIntention := Compatibility .BinaryAndSourceCompatible ,
7+ versionPolicyIntention := {
8+ if (scalaVersion.value.startsWith(" 3" ))
9+ Compatibility .None
10+ else
11+ Compatibility .BinaryAndSourceCompatible
12+ }
813)
914
1015lazy val root = project.in(file(" ." ))
@@ -22,7 +27,7 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor
2227 name := " scala-parser-combinators" ,
2328 scalaModuleAutomaticModuleName := Some (" scala.util.parsing" ),
2429
25- crossScalaVersions := Seq (" 2.13.8" , " 2.12.15" , " 2.11.12" , " 3.0.2 " ),
30+ crossScalaVersions := Seq (" 2.13.8" , " 2.12.15" , " 2.11.12" , " 3.1.1 " ),
2631 scalaVersion := crossScalaVersions.value.head,
2732
2833 libraryDependencies += " junit" % " junit" % " 4.13.2" % Test ,
@@ -99,13 +104,10 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor
99104 .nativeSettings(
100105 versionPolicyCheck / skip := true ,
101106 versionCheck / skip := true ,
102- compile / skip := System .getProperty(" java.version" ).startsWith(" 1.6" ) || ! scalaVersion.value.startsWith(" 2" ),
103- test := {},
104- libraryDependencies := {
105- if (! scalaVersion.value.startsWith(" 2" ))
106- libraryDependencies.value.filterNot(_.organization == " org.scala-native" )
107- else libraryDependencies.value
108- }
107+ Test / fork := false ,
108+ libraryDependencies :=
109+ libraryDependencies.value.filterNot(_.organization == " junit" ) :+ " org.scala-native" %%% " junit-runtime" % " 0.4.3" ,
110+ addCompilerPlugin(" org.scala-native" % " junit-plugin" % " 0.4.3" cross CrossVersion .full)
109111 )
110112
111113lazy val parserCombinatorsJVM = parserCombinators.jvm
0 commit comments