-
Notifications
You must be signed in to change notification settings - Fork 0
Bump SBT 1.10.7, Scala 2.12.20/2.13.16/3.3.5, and all build plugins #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: series/3.x-avs
Are you sure you want to change the base?
Changes from all commits
aebeaa0
c55330d
b7c6bf5
3e83f14
d9a9cbd
65a0106
c1d3daa
85cb483
031d577
807251c
9da2412
b1d55b8
0f8710a
d365e23
911ea97
f395995
6aeefdf
45d359d
0c9251f
cb4aebe
b6440ef
da27598
7465e7b
294f64c
07bfa7f
cdb46e3
0ecf74e
f7e09ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -17,7 +17,7 @@ jobs: | |||||
| java: [ 8, 11 ] | ||||||
| # WARN: build.sbt depends on this key path, as scalaVersion and | ||||||
| # crossScalaVersions is determined from it | ||||||
| scala: [ 2.12.15, 2.13.8, 3.1.2 ] | ||||||
| scala: [ 2.12.20, 2.13.18, 3.3.7 ] | ||||||
|
|
||||||
| env: | ||||||
| CI: true | ||||||
|
|
@@ -63,9 +63,9 @@ jobs: | |||||
| # WARN: build.sbt depends on this key path, as scalaVersion and | ||||||
| # crossScalaVersions is determined from it | ||||||
| include: | ||||||
| - { java: 8, scala: 2.12.15 } | ||||||
| - { java: 8, scala: 2.13.8 } | ||||||
| - { java: 8, scala: 3.1.2 } | ||||||
| - { java: 8, scala: 2.12.20 } | ||||||
| - { java: 8, scala: 2.13.18 } | ||||||
| - { java: 8, scala: 3.3.7 } | ||||||
|
|
||||||
| env: | ||||||
| CI: true | ||||||
|
|
@@ -115,9 +115,9 @@ jobs: | |||||
| fail-fast: false | ||||||
| matrix: | ||||||
| include: | ||||||
| - { java: 8, scala: 2.12.15 } | ||||||
| - { java: 8, scala: 2.13.8 } | ||||||
| - { java: 8, scala: 3.1.2 } | ||||||
| - { java: 8, scala: 2.12.20 } | ||||||
| - { java: 8, scala: 2.13.18 } | ||||||
| - { java: 8, scala: 3.3.7 } | ||||||
|
|
||||||
| steps: | ||||||
| - uses: actions/checkout@v2 | ||||||
|
|
@@ -158,9 +158,9 @@ jobs: | |||||
| fail-fast: false | ||||||
| matrix: | ||||||
| include: | ||||||
| - { java: 8, scala: 2.13.8 } | ||||||
| - { java: 8, scala: 2.13.18 } | ||||||
| # TODO: enable this after it works! | ||||||
| # - { java: 8, scala: 3.1.2 } | ||||||
| # - { java: 8, scala: 3.3.5 } | ||||||
|
||||||
| # - { java: 8, scala: 3.3.5 } | |
| # - { java: 8, scala: 3.3.7 } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,3 +18,4 @@ TAGS | |
| metals.sbt | ||
| .vscode | ||
| .bsp | ||
| .planning/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,5 +4,4 @@ | |
| -XX:ReservedCodeCacheSize=250M | ||
| -XX:+TieredCompilation | ||
| -XX:-UseGCOverheadLimit | ||
| -XX:+CMSClassUnloadingEnabled | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ import sbt.{ Def, Global, Tags } | |
|
|
||
| import scala.collection.immutable.SortedSet | ||
| import MonixBuildUtils._ | ||
| import org.typelevel.scalacoptions.ScalacOptions | ||
|
|
||
| val benchmarkProjects = List( | ||
| "benchmarksPrev", | ||
|
|
@@ -31,9 +32,9 @@ val reactiveStreams_Version = "1.0.4" | |
| val macrotaskExecutor_Version = "1.0.0" | ||
| val minitest_Version = "2.9.6" | ||
| val implicitBox_Version = "0.3.4" | ||
| val kindProjector_Version = "0.13.2" | ||
| val kindProjector_Version = "0.13.4" | ||
| val betterMonadicFor_Version = "0.3.1" | ||
| val silencer_Version = "1.7.8" | ||
| val silencer_Version = "1.7.19" | ||
| val scalaCompat_Version = "2.7.0" | ||
|
|
||
| // The Monix version with which we must keep binary compatibility. | ||
|
|
@@ -177,6 +178,13 @@ lazy val sharedSettings = pgpSettings ++ Seq( | |
| } | ||
| }, | ||
| */ | ||
| // Auto-fix implicit type warnings instead of silencing them | ||
| Compile / scalacOptions ++= { | ||
| CrossVersion.partialVersion(scalaVersion.value) match { | ||
| case Some((2, 13)) => Seq("-quickfix:cat=other-implicit-type") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| case _ => Seq.empty | ||
| } | ||
| }, | ||
|
|
||
| // Disabled from the sbt-tpolecat set | ||
| Compile / scalacOptions --= Seq( | ||
|
|
@@ -189,8 +197,19 @@ lazy val sharedSettings = pgpSettings ++ Seq( | |
| "-Wunused:explicits", | ||
| "-Ywarn-unused:params", | ||
| "-Wunused:params", | ||
| "-Xlint:infer-any" | ||
| "-Xlint:infer-any", | ||
| "-Wnonunit-statement" | ||
| ), | ||
| // Disabled from tpolecat for test compilation: | ||
| // -Wunused:patvars triggers on for-comprehension loop vars in tests (pre-existing pattern) | ||
| // -Xlint:constant triggers on intentional overflow tests (e.g. Long.MaxValue + 1) | ||
| Test / scalacOptions --= { | ||
| CrossVersion.partialVersion(scalaVersion.value) match { | ||
| case Some((2, 13)) => Seq("-Wunused:patvars", "-Xlint:constant") | ||
| case Some((2, 12)) => Seq("-Ywarn-unused:patvars") | ||
| case _ => Seq.empty | ||
| } | ||
| }, | ||
| // Turning off fatal warnings for doc generation | ||
| Compile / doc / tpolecatExcludeOptions ++= ScalacOptions.defaultConsoleExclude, | ||
| // Silence everything in auto-generated files | ||
|
|
@@ -202,7 +221,9 @@ lazy val sharedSettings = pgpSettings ++ Seq( | |
| }, | ||
| scalacOptions --= { | ||
| if (isDotty.value) | ||
| Seq("-Xfatal-warnings") | ||
| // tpolecat uses -Werror in Scala 3; disable fatal warnings | ||
| // so that pre-existing value-discard and similar patterns don't break Scala 3 builds | ||
| Seq("-Werror") | ||
| else | ||
| Seq() | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,4 +15,4 @@ | |
| # limitations under the License. | ||
| # | ||
|
|
||
| sbt.version=1.5.2 | ||
| sbt.version=1.12.6 | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,17 @@ | ||
| addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.10.0") | ||
| addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3") | ||
| addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3") | ||
| addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.0") | ||
| addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.7.0") | ||
| addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") | ||
| addSbtPlugin("com.github.tkawachi" % "sbt-doctest" % "0.10.0") | ||
| addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3") | ||
| addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.20.2") | ||
| addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0") | ||
| addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.7") | ||
| addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.4") | ||
| addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.10.0") | ||
| addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.6") | ||
| addSbtPlugin("io.github.sbt-doctest" % "sbt-doctest" % "0.12.4") | ||
|
Comment on lines
+5
to
+7
|
||
| addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.3.1") | ||
| addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.2.0") | ||
| addSbtPlugin("net.bzzt" % "sbt-reproducible-builds" % "0.30") | ||
| addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.3.1") | ||
| addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1") | ||
| addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.2") | ||
| addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.12") | ||
| addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2") | ||
| addSbtPlugin("net.bzzt" % "sbt-reproducible-builds" % "0.32") | ||
| addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.3") | ||
| addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.0") | ||
| addSbtPlugin("com.github.sbt" % "sbt-git" % "2.1.0") | ||
| addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2") | ||
| addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1") | ||
|
|
||
| libraryDependencySchemes += "com.lihaoyi" %% "geny" % VersionScheme.Always | ||
halotukozak marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can be removed now. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Scala versions in the CI matrix were updated to
2.13.18and3.3.7, but the PR description says2.13.16/3.3.5. Sincebuild.sbtderivesscalaVersion/crossScalaVersionsfrom this YAML, please make sure the CI matrix versions match the versions claimed in the PR (or update the PR description to reflect the actual versions).