Skip to content

Commit

Permalink
Prepare for 3.0.2 release (#205)
Browse files Browse the repository at this point in the history
Ignore binary compatibility check for transitive dependencies (`nel` and `safe-actor`) - it allows only bug-fix release bump
  • Loading branch information
mr-git committed May 20, 2024
1 parent c96c312 commit b1905b3
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 16 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,10 @@ jobs:
cache: 'sbt'

- name: build ${{ matrix.scala }}
run: sbt ++${{ matrix.scala }} clean coverage test
run: sbt ++${{ matrix.scala }} clean check coverage test

- name: test coverage
if: success()
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: sbt ++${{ matrix.scala }} coverageReport coverageAggregate coveralls

- name: slack
uses: homoluctus/slatify@master
if: failure() && github.ref == 'refs/heads/master'
with:
type: ${{ job.status }}
job_name: Build
url: ${{ secrets.SLACK_WEBHOOK }}
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Publish new Release

on:
release:
types: [published]
branches: [master]

jobs:
release:
uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@v1
secrets: inherit
14 changes: 12 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Dependencies._
import Dependencies.*

name := "sharding-strategy"

Expand All @@ -15,7 +15,14 @@ scalacOptions := Seq(
"-Xsource:3",
)
releaseCrossBuild := true
publishTo := Some(Resolver.evolutionReleases)
publishTo := Some(Resolver.evolutionReleases) // sbt-release
versionPolicyIntention := Compatibility.BinaryCompatible // sbt-version-policy

// TODO remove after 3.0.2 is released
versionPolicyIgnored := Seq(
"com.evolutiongaming" %% "nel",
"com.evolutiongaming" %% "safe-actor",
)

libraryDependencies ++= Seq(
`ddata-tools`,
Expand All @@ -31,4 +38,7 @@ libraryDependencies ++= Seq(

licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT")))

//addCommandAlias("fmt", "scalafixAll; all scalafmtAll scalafmtSbt")
//addCommandAlias("check", "scalafixEnable; scalafixAll --check; all versionPolicyCheck scalafmtCheckAll scalafmtSbtCheck")
addCommandAlias("check", "versionPolicyCheck")
addCommandAlias("build", "all compile test")
6 changes: 3 additions & 3 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import sbt._

object Dependencies {

val scalatest = "org.scalatest" %% "scalatest" % "3.2.18"
val `cats-helper` = "com.evolutiongaming" %% "cats-helper" % "3.10.3"
val `ddata-tools` = "com.evolutiongaming" %% "ddata-tools" % "4.0.0"
val scalatest = "org.scalatest" %% "scalatest" % "3.2.18"
val `cats-helper` = "com.evolutiongaming" %% "cats-helper" % "3.10.3"
val `ddata-tools` = "com.evolutiongaming" %% "ddata-tools" % "4.0.0"

object Cats {
private val version = "2.10.0"
Expand Down
4 changes: 3 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")

addSbtPlugin("com.evolution" % "sbt-scalac-opts-plugin" % "0.0.9")

addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.0.2")
addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.0.2")

addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.2.1")
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "3.0.2-SNAPSHOT"
ThisBuild / version := "3.0.2"

0 comments on commit b1905b3

Please sign in to comment.