Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit de2d168

Browse files
Don't check for scala versions anymore for scala native
1 parent c287698 commit de2d168

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎build.sbt‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ ThisBuild / startYear := Some(2004)
44
// I thought we could declare these in `ThisBuild` scope but no :-/
55
val 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

1015
lazy 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,8 @@ 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+
compile / skip := System.getProperty("java.version").startsWith("1.6"),
108+
test := {}
109109
)
110110

111111
lazy val parserCombinatorsJVM = parserCombinators.jvm

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /