Skip to content

Commit 45230ac

Browse files
authored
build: Setup sbt-version-policy (#484)
* build: Setup sbt-version-policy * fix: Set more heap for sbt
1 parent ea23619 commit 45230ac

File tree

6 files changed

+8
-3
lines changed

6 files changed

+8
-3
lines changed

.github/workflows/pull.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
with:
1515
extraKey: pr-${GITHUB_HEAD_REF}
1616
- name: Check/Compile/Test
17-
run: sbt check
17+
run: sbt versionPolicyCheck check

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
java-version: 11
1515
- uses: coursier/cache-action@v5
1616
- name: Check/Compile/Test
17-
run: sbt check
17+
run: sbt versionCheck check
1818
- name: Release
1919
env:
2020
PGP_SECRET: ${{ secrets.PGP_SECRET }}

.sbtopts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-J-Xmx4g

build.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ lazy val root = project
4343
sentryPureConfig,
4444
sslConfig
4545
)
46+
.disablePlugins(SbtVersionPolicyPlugin)
4647
.settings(BuildSettings.common)
4748
.settings(
4849
name := "scala-server-toolkit",
@@ -132,6 +133,7 @@ lazy val doobieHikariPureConfig = project
132133

133134
lazy val example = project
134135
.in(file("example"))
136+
.disablePlugins(SbtVersionPolicyPlugin)
135137
.dependsOn(
136138
bundleZioHttp4sBlaze,
137139
cassandraDatastaxDriver,

project/BuildSettings.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import sbt.Keys._
66
import sbt.nio.Keys._
77
import sbt.{Def, _}
88
import sbtunidoc.ScalaUnidocPlugin.autoImport._
9+
import sbtversionpolicy.SbtVersionPolicyPlugin.autoImport._
910
import scalafix.sbt.ScalafixPlugin.autoImport._
1011

1112
object BuildSettings {
@@ -15,6 +16,7 @@ object BuildSettings {
1516
Global / cancelable := true,
1617
Global / excludeLintKeys += fork,
1718
ThisBuild / versionScheme := Some("early-semver"),
19+
ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible,
1820
turbo := true,
1921
organization := "com.avast",
2022
organizationName := "Avast",

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.5")
55
addSbtPlugin("com.47deg" % "sbt-microsites" % "1.3.2")
66
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3")
77
addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.0")
8-
addSbtPlugin("io.chrisdavenport" % "sbt-mima-version-check" % "0.1.2")
8+
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "1.0.0-RC5")

0 commit comments

Comments
 (0)