Skip to content

Commit 1e94eaa

Browse files
committed
Add sbt-version-policy
1 parent 3c19fcf commit 1e94eaa

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ jobs:
7777
- name: Check that workflows are up to date
7878
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
7979

80-
- name: Report binary compatibility issues
81-
run: sbt '++ ${{ matrix.scala }}' mimaReportBinaryIssues
80+
- name: Report version policy issues
81+
run: sbt '++ ${{ matrix.scala }}' versionPolicyCheck
8282

8383
- name: Build project
8484
run: sbt '++ ${{ matrix.scala }}' clean coverage test

build.sbt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ val pekkoHttpVersion = "1.0.1"
1212
val jawnVersion = "1.6.0"
1313
val scalaTestVersion = "3.2.19"
1414

15-
ThisBuild / crossScalaVersions := Seq(scala212Version, scala213Version, scala3Version)
16-
ThisBuild / scalaVersion := scala213Version
17-
ThisBuild / organization := "org.mdedetrich"
18-
ThisBuild / versionScheme := Some(VersionScheme.EarlySemVer)
15+
ThisBuild / crossScalaVersions := Seq(scala212Version, scala213Version, scala3Version)
16+
ThisBuild / scalaVersion := scala213Version
17+
ThisBuild / organization := "org.mdedetrich"
18+
ThisBuild / versionScheme := Some(VersionScheme.EarlySemVer)
19+
ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible
1920

2021
lazy val streamJson = project
2122
.in(file("stream-json"))
@@ -158,7 +159,7 @@ ThisBuild / scalacOptions ++= {
158159
ThisBuild / githubWorkflowTargetBranches := Seq("main") // Once we have branches per version, add the pattern here
159160

160161
ThisBuild / githubWorkflowBuild := Seq(
161-
WorkflowStep.Sbt(List("mimaReportBinaryIssues"), name = Some("Report binary compatibility issues")),
162+
WorkflowStep.Sbt(List("versionPolicyCheck"), name = Some("Report version policy issues")),
162163
WorkflowStep.Sbt(List("clean", "coverage", "test"), name = Some("Build project"))
163164
)
164165

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.2.0
77
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.13")
88
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3")
99
addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.24.0")
10+
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.2.1")

0 commit comments

Comments
 (0)