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 b097700

Browse files
Merge pull request #447 from Philippus/issue-444
Don't check for scala versions anymore for scala native
2 parents c287698 + 063ebb3 commit b097700

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

‎.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
java: [8, 11, 17]
13-
scala: [2.11.12, 2.12.15, 2.13.8, 3.0.2]
13+
scala: [2.11.12, 2.12.15, 2.13.8, 3.1.1]
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2

‎build.sbt

Lines changed: 11 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,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

111113
lazy val parserCombinatorsJVM = parserCombinators.jvm

0 commit comments

Comments
(0)

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