Skip to content

Commit

Permalink
exclude publishing for Scala 3.1.1 (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
pk044 committed Feb 16, 2022
1 parent d2e6568 commit 695a894
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.12.15, 2.13.8, 3.1.0]
scala: [2.12.15, 2.13.8, 3.0.2, 3.1.1]
java: [temurin@8, temurin@17]
runs-on: ${{ matrix.os }}
steps:
Expand Down
13 changes: 10 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,28 @@ import sbt.librarymanagement.ConflictWarning

val scala_2_12 = "2.12.15"
val scala_2_13 = "2.13.8"
val scala_3 = "3.1.1"
val scala_30 = "3.0.2"
val scala_31 = "3.1.1"
val mainScalaVersion = scala_2_13
val supportedScalaVersions = Seq(scala_2_12, scala_2_13, scala_3)
val supportedScalaVersions = Seq(scala_2_12, scala_2_13, scala_30, scala_31)

ThisBuild / crossScalaVersions := supportedScalaVersions
ThisBuild / scalaVersion := mainScalaVersion

ThisBuild / conflictWarning := ConflictWarning.disable


lazy val baseSettings = Seq(
organization := "pl.iterators",
organizationName := "Iterators",
organizationHomepage := Some(url("https://iterato.rs")),
homepage := Some(url("https://github.com/theiterators/kebs")),
scalacOptions := Seq("-deprecation", "-unchecked", "-feature", "-encoding", "utf8")
scalacOptions := Seq("-deprecation", "-unchecked", "-feature", "-encoding", "utf8"),
// Don't publish for Scala 3.1 or later, only from 3.0
publish / skip := (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, x)) if x > 0 => true
case _ => false
})
)

lazy val commonMacroSettings = baseSettings ++ Seq(
Expand Down

0 comments on commit 695a894

Please sign in to comment.