@@ -2,21 +2,28 @@ import sbt.librarymanagement.ConflictWarning
2
2
3
3
val scala_2_12 = " 2.12.15"
4
4
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"
6
7
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 )
8
9
9
10
ThisBuild / crossScalaVersions := supportedScalaVersions
10
11
ThisBuild / scalaVersion := mainScalaVersion
11
12
12
13
ThisBuild / conflictWarning := ConflictWarning .disable
13
14
15
+
14
16
lazy val baseSettings = Seq (
15
17
organization := " pl.iterators" ,
16
18
organizationName := " Iterators" ,
17
19
organizationHomepage := Some (url(" https://iterato.rs" )),
18
20
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
+ })
20
27
)
21
28
22
29
lazy val commonMacroSettings = baseSettings ++ Seq (
0 commit comments