Skip to content

Commit

Permalink
Add automatic version-numbering-based-on-compatibility scalacenter/sb…
Browse files Browse the repository at this point in the history
  • Loading branch information
Guardian Automated Maven Release committed Dec 5, 2023
1 parent a5082c8 commit 9981629
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ReleaseTransformations.*
import sbtversionpolicy.withsbtrelease.ReleaseVersion

ThisBuild / scalaVersion := "2.13.12"
ThisBuild / crossScalaVersions := Seq(
Expand All @@ -8,7 +9,6 @@ ThisBuild / crossScalaVersions := Seq(
)
ThisBuild / scalacOptions := Seq("-deprecation", "-release","11")
ThisBuild / licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / versionScheme := Some("early-semver")

lazy val baseSettings = Seq(
libraryDependencies ++= Seq(
Expand Down Expand Up @@ -53,6 +53,7 @@ lazy val `etag-caching-root` = (project in file("."))
`aws-s3-sdk-v2`
).settings(baseSettings).settings(
publish / skip := true,
releaseVersion := ReleaseVersion.fromAggregatedAssessedCompatibilityWithLatestRelease().value,
releaseCrossBuild := true, // true if you cross-build the project for multiple Scala versions
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
Expand Down
4 changes: 3 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.21")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.21")

addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.1.0")

0 comments on commit 9981629

Please sign in to comment.