Skip to content

Commit 820b891

Browse files
authored
Merge pull request #423 from SethTisue/fix-version-policy
2 parents e4bb1f1 + c0f54fc commit 820b891

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

build.sbt

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1+
ThisBuild / licenses += (("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0")))
2+
ThisBuild / startYear := Some(2004)
3+
4+
// I thought we could declare these in `ThisBuild` scope but no :-/
5+
val commonSettings = Seq(
6+
versionScheme := Some("early-semver"),
7+
versionPolicyIntention := Compatibility.BinaryCompatible,
8+
)
9+
110
lazy val root = project.in(file("."))
211
.aggregate(parserCombinatorsJVM, parserCombinatorsJS, parserCombinatorsNative)
312
.settings(
13+
commonSettings,
414
publish / skip := true,
5-
ThisBuild / licenses += (("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0"))),
6-
ThisBuild / startYear := Some(2004),
7-
ThisBuild / versionScheme := Some("early-semver"),
8-
ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible,
9-
// because it doesn't declare it itself
10-
ThisBuild / libraryDependencySchemes += "org.scala-js" %% "scalajs-library" % "semver-spec"
1115
)
1216

1317
lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatform)
1418
.in(file("."))
1519
.settings(
1620
ScalaModulePlugin.scalaModuleSettings,
21+
commonSettings,
1722
name := "scala-parser-combinators",
1823
scalaModuleAutomaticModuleName := Some("scala.util.parsing"),
1924

@@ -92,7 +97,8 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor
9297
)
9398
.jsEnablePlugins(ScalaJSJUnitPlugin)
9499
.nativeSettings(
95-
ThisBuild / versionPolicyIntention := Compatibility.None,
100+
versionPolicyCheck / skip := true,
101+
versionCheck / skip := true,
96102
compile / skip := System.getProperty("java.version").startsWith("1.6") || !scalaVersion.value.startsWith("2"),
97103
test := {},
98104
libraryDependencies := {

0 commit comments

Comments
 (0)