Skip to content

Commit f3f5fcc

Browse files
committed
add sbt-version-policy and declare a version scheme
fixes #434
1 parent 4e6cf96 commit f3f5fcc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

build.sbt

+3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ lazy val compat = MultiScalaCrossProject(JSPlatform, JVMPlatform, NativePlatform
7070
if (scalaVersion.value.startsWith("2.13.") || isDotty.value) sharedSourceDir / "scala-2.13"
7171
else sharedSourceDir / "scala-2.11_2.12"
7272
},
73+
versionScheme := Some("early-semver"),
74+
versionPolicyIntention := Compatibility.BinaryCompatible,
7375
)
7476
.jvmSettings(
7577
Test / unmanagedSourceDirectories += (ThisBuild / baseDirectory).value / "compat/src/test/scala-jvm",
@@ -361,6 +363,7 @@ inThisBuild(
361363
List(s"""++${sys.env.get("TRAVIS_SCALA_VERSION").get}!"""),
362364
List(s"$projectPrefix/clean"),
363365
List(s"$testProjectPrefix/test"),
366+
List(s"$projectPrefix/versionPolicyCheck"),
364367
List(s"$projectPrefix/publishLocal"),
365368
publishTask
366369
).flatten

project/plugins.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % crossV
1212
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.2.4")
1313
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.26")
1414
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
15+
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "1.0.0-RC5")

0 commit comments

Comments
 (0)