File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,20 @@ lazy val root = project.in(file("."))
2
2
.aggregate(parserCombinatorsJVM, parserCombinatorsJS, parserCombinatorsNative)
3
3
.settings(
4
4
publish / skip := true ,
5
+ ThisBuild / versionScheme := Some (" early-semver" ),
6
+ ThisBuild / versionPolicyIntention := Compatibility .BinaryAndSourceCompatible
5
7
)
6
8
7
9
lazy val parserCombinators = crossProject(JVMPlatform , JSPlatform , NativePlatform )
8
10
.in(file(" ." ))
9
11
.settings(
10
12
ScalaModulePlugin .scalaModuleSettings,
11
13
name := " scala-parser-combinators" ,
12
- scalaModuleMimaPreviousVersion := None , // until we publish 1.2.0
14
+ scalaModuleMimaPreviousVersion := (CrossVersion .partialVersion(scalaVersion.value) match {
15
+ // pending resolution of https://github.com/scalacenter/sbt-version-policy/issues/62
16
+ case Some ((3 , _)) => None
17
+ case _ => Some (" 1.2.0-M2" )
18
+ }),
13
19
14
20
libraryDependencies += " junit" % " junit" % " 4.13.2" % Test ,
15
21
libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % Test ,
Original file line number Diff line number Diff line change @@ -53,4 +53,4 @@ export CI_SNAPSHOT_RELEASE="${projectPrefix}publish"
53
53
# for now, until we're confident in the new release scripts, just close the staging repo.
54
54
export CI_SONATYPE_RELEASE=" ; sonatypePrepare; sonatypeBundleUpload; sonatypeClose"
55
55
56
- sbt clean ${projectPrefix} test ${projectPrefix} publishLocal $releaseTask
56
+ sbt clean ${projectPrefix} test ${projectPrefix} versionPolicyCheck ${projectPrefix} publishLocal $releaseTask
Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)
12
12
addSbtPlugin(" org.portable-scala" % " sbt-scala-native-crossproject" % " 1.0.0" )
13
13
addSbtPlugin(" org.scala-native" % " sbt-scala-native" % scalaNativeVersion)
14
14
15
+ addSbtPlugin(" ch.epfl.scala" % " sbt-version-policy" % " 1.0.0-RC5" )
15
16
addSbtPlugin(" ch.epfl.lamp" % " sbt-dotty" % " 0.5.3" )
You can’t perform that action at this time.
0 commit comments