Skip to content

Commit 89bf9d1

Browse files
authored
Merge pull request scala#548 from scala-steward/update/sbt-scala-module-2.4.0
2 parents 06e8a20 + 5c746cb commit 89bf9d1

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- run: java -version
5353
- sbt_cmd:
5454
scala_version: << parameters.scala_version >>
55-
sbt_tasks: xml/update xml/compile xml/Test/compile xml/test xml/doc xml/package xml/osgiBundle xml/versionPolicyCheck
55+
sbt_tasks: xml/update xml/compile xml/Test/compile xml/test xml/doc xml/package xml/osgiBundle
5656
scalajs_job:
5757
executor: scala_jdk8_executor
5858
parameters:

build.sbt

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
33
ThisBuild / startYear := Some(2002)
44
ThisBuild / licenses += (("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0")))
55

6-
ThisBuild / versionScheme := Some("early-semver")
7-
ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible
86
// because it doesn't declare it itself
9-
ThisBuild / versionPolicyDependencySchemes += "org.scala-js" %% "scalajs-library" % "semver-spec"
7+
ThisBuild / libraryDependencySchemes += "org.scala-js" %% "scalajs-library" % "semver-spec"
108

119
lazy val configSettings: Seq[Setting[_]] = Seq(
1210
unmanagedSourceDirectories ++= {
@@ -59,7 +57,7 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform, NativePlatform)
5957
|""".stripMargin)),
6058

6159
// Note: See discussion on non-JVM Mima in https://github.com/scala/scala-xml/pull/517
62-
scalaModuleMimaPreviousVersion := Some("2.0.0"),
60+
versionPolicyIntention := Compatibility.BinaryAndSourceCompatible,
6361
mimaReportSignatureProblems := true,
6462
mimaBinaryIssueFilters ++= {
6563
import com.typesafe.tools.mima.core._

build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ verPat="[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)?"
3737
tagPat="^v$verPat(#.*)?$"
3838

3939
if [[ "$TRAVIS_TAG" =~ $tagPat ]]; then
40+
versionCheckTask="versionCheck"
4041
releaseTask="ci-release"
4142
if ! isReleaseJob; then
4243
echo "Not releasing on Java $ADOPTOPENJDK with Scala $TRAVIS_SCALA_VERSION"
@@ -53,4 +54,4 @@ export CI_SNAPSHOT_RELEASE="${projectPrefix}publish"
5354
# for now, until we're confident in the new release scripts, just close the staging repo.
5455
export CI_SONATYPE_RELEASE="; sonatypePrepare; sonatypeBundleUpload; sonatypeClose"
5556

56-
sbt clean ${projectPrefix}test ${projectPrefix}versionPolicyCheck ${projectPrefix}publishLocal $releaseTask
57+
sbt clean ${projectPrefix}test ${projectPrefix}publishLocal $versionCheckTask $releaseTask

project/plugins.sbt

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ val scalaJSVersion =
44
val scalaNativeVersion =
55
Option(System.getenv("SCALANATIVE_VERSION")).filter(_.nonEmpty).getOrElse("0.4.0")
66

7-
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.3.1")
7+
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.4.0")
88
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.1.0")
99
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.1.0")
1010
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)
1111
addSbtPlugin("org.scala-native" % "sbt-scala-native" % scalaNativeVersion)
1212
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
13-
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "1.2.1")

0 commit comments

Comments
 (0)