Skip to content

Commit

Permalink
bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kitlangton committed Apr 11, 2022
1 parent 4effe28 commit 3f86386
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
fail-fast: false
matrix:
java: ['[email protected]', '[email protected]']
scala: ['2.11.12', '2.12.15', '2.13.7', '3.1.0']
scala: ['2.11.12', '2.12.15', '2.13.8', '3.1.1']
platform: ['JVM', 'JS', 'Native']
steps:
- name: Checkout current branch
Expand Down
18 changes: 9 additions & 9 deletions project/BuildHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ object BuildHelper {
private val Scala211 = "2.11.12"
private val Scala212 = "2.12.15"
private val Scala213 = "2.13.8"
val ScalaDotty = "3.1.1"
val Scala3 = "3.1.1"

val SilencerVersion = "1.7.8"

Expand Down Expand Up @@ -133,30 +133,30 @@ object BuildHelper {
}

val dottySettings = Seq(
crossScalaVersions += ScalaDotty,
crossScalaVersions += Scala3,
scalacOptions ++= {
if (scalaVersion.value == ScalaDotty)
if (scalaVersion.value == Scala3)
Seq("-noindent")
else
Seq()
},
scalacOptions --= {
if (scalaVersion.value == ScalaDotty)
if (scalaVersion.value == Scala3)
Seq("-Xfatal-warnings")
else
Seq()
},
Compile / doc / sources := {
val old = (Compile / doc / sources).value
if (scalaVersion.value == ScalaDotty) {
if (scalaVersion.value == Scala3) {
Nil
} else {
old
}
},
Test / parallelExecution := {
val old = (Test / parallelExecution).value
if (scalaVersion.value == ScalaDotty) {
if (scalaVersion.value == Scala3) {
false
} else {
old
Expand Down Expand Up @@ -189,7 +189,7 @@ object BuildHelper {
ThisBuild / scalaVersion := Scala213,
scalacOptions ++= stdOptions ++ extraOptions(scalaVersion.value, optimize = !isSnapshot.value),
libraryDependencies ++= {
if (scalaVersion.value == ScalaDotty)
if (scalaVersion.value == Scala3)
Seq(
"com.github.ghik" % s"silencer-lib_$Scala213" % SilencerVersion % Provided
)
Expand All @@ -199,7 +199,7 @@ object BuildHelper {
compilerPlugin("com.github.ghik" % "silencer-plugin" % SilencerVersion cross CrossVersion.full)
)
},
semanticdbEnabled := scalaVersion.value != ScalaDotty, // enable SemanticDB
semanticdbEnabled := scalaVersion.value != Scala3, // enable SemanticDB
semanticdbOptions += "-P:semanticdb:synthetics:on",
semanticdbVersion := scalafixSemanticdb.revision, // use Scalafix compatible version
ThisBuild / scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value),
Expand Down Expand Up @@ -232,7 +232,7 @@ object BuildHelper {
def macroDefinitionSettings = Seq(
scalacOptions += "-language:experimental.macros",
libraryDependencies ++= {
if (scalaVersion.value == ScalaDotty) Seq()
if (scalaVersion.value == Scala3) Seq()
else
Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided",
Expand Down

0 comments on commit 3f86386

Please sign in to comment.