Skip to content

Commit

Permalink
Merge pull request #439 from mkurz/downgrade_modules
Browse files Browse the repository at this point in the history
Downgrade scala-parser-combinators and scala-xml
  • Loading branch information
mkurz authored Sep 1, 2021
2 parents c57d350 + 0ad4b8f commit 1622c35
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
6 changes: 6 additions & 0 deletions .scala-steward.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
pullRequests.frequency = "@weekly"
commits.message = "${artifactName} ${nextVersion} (was ${currentVersion})"

updates.pin = [
// See comment in build.sbt why we want to pin these two deps to 1.x
{ groupId = "org.scala-lang.modules", artifactId = "scala-xml", version = "1." },
{ groupId = "org.scala-lang.modules", artifactId = "scala-parser-combinators", version = "1." }
]
14 changes: 8 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import org.scalajs.jsenv.nodejs.NodeJSEnv
// Binary compatibility is this version
val previousVersion: Option[String] = Some("1.5.0")

val ScalaTestVersion = "3.2.9"
val ScalaParserCombinatorsVersion = "2.0.0"

val ScalaXmlVersion = "2.0.1"
// Next line can be removed when dropping Scala 2.12? See https://github.com/playframework/twirl/pull/424
ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
val ScalaTestVersion = "3.2.9"

// Do NOT upgrade these dependencies to 2.x or newer! twirl is a sbt-plugin
// and gets published with Scala 2.12, therefore we need to stay at the same major version
// like the 2.12.x Scala compiler, otherwise we run into conflicts when using sbt 1.5+
// See https://github.com/scala/scala/pull/9743
val ScalaParserCombinatorsVersion = "1.1.2" // Do not upgrade beyond 1.x
val ScalaXmlVersion = "1.3.0" // Do not upgrade beyond 1.x

val mimaSettings = Seq(
mimaPreviousArtifacts := previousVersion.map(organization.value %% name.value % _).toSet
Expand Down
3 changes: 0 additions & 3 deletions docs/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ resolvers ++= DefaultOptions.resolvers(snapshot = true)
addSbtPlugin("com.typesafe.play" % "play-docs-sbt-plugin" % sys.props.getOrElse("play.version", "2.8.0"))
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")

// Next line can be removed when dropping Scala 2.12? See https://github.com/playframework/twirl/pull/424
ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
3 changes: 0 additions & 3 deletions sbt-twirl/src/sbt-test/twirl/compile/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % sys.props("project.version"))

// Next line can be removed when dropping Scala 2.12? See https://github.com/playframework/twirl/pull/424
ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % sys.props("project.version"))
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.7.0")

// Next line can be removed when dropping Scala 2.12? See https://github.com/playframework/twirl/pull/424
ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always

0 comments on commit 1622c35

Please sign in to comment.