Skip to content

Commit

Permalink
build: Setup sbt-version-policy (#484)
Browse files Browse the repository at this point in the history
* build: Setup sbt-version-policy

* fix: Set more heap for sbt
  • Loading branch information
jakubjanecek authored Mar 8, 2021
1 parent ea23619 commit 45230ac
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
with:
extraKey: pr-${GITHUB_HEAD_REF}
- name: Check/Compile/Test
run: sbt check
run: sbt versionPolicyCheck check
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
java-version: 11
- uses: coursier/cache-action@v5
- name: Check/Compile/Test
run: sbt check
run: sbt versionCheck check
- name: Release
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
Expand Down
1 change: 1 addition & 0 deletions .sbtopts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-J-Xmx4g
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ lazy val root = project
sentryPureConfig,
sslConfig
)
.disablePlugins(SbtVersionPolicyPlugin)
.settings(BuildSettings.common)
.settings(
name := "scala-server-toolkit",
Expand Down Expand Up @@ -132,6 +133,7 @@ lazy val doobieHikariPureConfig = project

lazy val example = project
.in(file("example"))
.disablePlugins(SbtVersionPolicyPlugin)
.dependsOn(
bundleZioHttp4sBlaze,
cassandraDatastaxDriver,
Expand Down
2 changes: 2 additions & 0 deletions project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import sbt.Keys._
import sbt.nio.Keys._
import sbt.{Def, _}
import sbtunidoc.ScalaUnidocPlugin.autoImport._
import sbtversionpolicy.SbtVersionPolicyPlugin.autoImport._
import scalafix.sbt.ScalafixPlugin.autoImport._

object BuildSettings {
Expand All @@ -15,6 +16,7 @@ object BuildSettings {
Global / cancelable := true,
Global / excludeLintKeys += fork,
ThisBuild / versionScheme := Some("early-semver"),
ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible,
turbo := true,
organization := "com.avast",
organizationName := "Avast",
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.5")
addSbtPlugin("com.47deg" % "sbt-microsites" % "1.3.2")
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3")
addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.0")
addSbtPlugin("io.chrisdavenport" % "sbt-mima-version-check" % "0.1.2")
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "1.0.0-RC5")

0 comments on commit 45230ac

Please sign in to comment.