Skip to content

Commit 695a894

Browse files
authored
exclude publishing for Scala 3.1.1 (#198)
1 parent d2e6568 commit 695a894

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest]
17-
scala: [2.12.15, 2.13.8, 3.1.0]
17+
scala: [2.12.15, 2.13.8, 3.0.2, 3.1.1]
1818
java: [temurin@8, temurin@17]
1919
runs-on: ${{ matrix.os }}
2020
steps:

build.sbt

+10-3
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,28 @@ import sbt.librarymanagement.ConflictWarning
22

33
val scala_2_12 = "2.12.15"
44
val scala_2_13 = "2.13.8"
5-
val scala_3 = "3.1.1"
5+
val scala_30 = "3.0.2"
6+
val scala_31 = "3.1.1"
67
val mainScalaVersion = scala_2_13
7-
val supportedScalaVersions = Seq(scala_2_12, scala_2_13, scala_3)
8+
val supportedScalaVersions = Seq(scala_2_12, scala_2_13, scala_30, scala_31)
89

910
ThisBuild / crossScalaVersions := supportedScalaVersions
1011
ThisBuild / scalaVersion := mainScalaVersion
1112

1213
ThisBuild / conflictWarning := ConflictWarning.disable
1314

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

2229
lazy val commonMacroSettings = baseSettings ++ Seq(

0 commit comments

Comments
 (0)