allow minor versions after Scala 3.0 (#30331)
This commit is contained in:
parent
0bafbce327
commit
8468e6ae03
2 changed files with 6 additions and 6 deletions
|
|
@ -67,7 +67,7 @@ object AkkaDisciplinePlugin extends AutoPlugin {
|
|||
|
||||
lazy val nowarnSettings = {
|
||||
Dependencies.getScalaVersion() match {
|
||||
case three if three.startsWith("3.0") =>
|
||||
case three if three.startsWith("3.") =>
|
||||
Seq(Compile / scalacOptions := Seq(), Compile / doc / scalacOptions := Seq())
|
||||
case _ =>
|
||||
Seq(
|
||||
|
|
@ -99,7 +99,7 @@ object AkkaDisciplinePlugin extends AutoPlugin {
|
|||
Compile / scalacOptions ++= Seq("-Xfatal-warnings"),
|
||||
Test / scalacOptions --= testUndicipline,
|
||||
Compile / javacOptions ++= (
|
||||
if (Dependencies.getScalaVersion().startsWith("3.0")) {
|
||||
if (Dependencies.getScalaVersion().startsWith("3.")) {
|
||||
Seq()
|
||||
} else {
|
||||
if (!nonFatalJavaWarningsFor(name.value)) Seq("-Werror", "-Xlint:deprecation", "-Xlint:unchecked")
|
||||
|
|
|
|||
|
|
@ -36,14 +36,14 @@ object Dependencies {
|
|||
val sslConfigVersion = "0.4.2"
|
||||
|
||||
val scalaTestVersion = {
|
||||
if (getScalaVersion().startsWith("3.0")) {
|
||||
if (getScalaVersion().startsWith("3.")) {
|
||||
"3.2.9"
|
||||
} else {
|
||||
"3.1.4"
|
||||
}
|
||||
}
|
||||
val scalaTestScalaCheckVersion = {
|
||||
if (getScalaVersion().startsWith("3.0")) {
|
||||
if (getScalaVersion().startsWith("3.")) {
|
||||
"1-15"
|
||||
} else {
|
||||
"1-14"
|
||||
|
|
@ -56,10 +56,10 @@ object Dependencies {
|
|||
System.getProperty("akka.build.scalaVersion", "default") match {
|
||||
case twoThirteen if twoThirteen.startsWith("2.13") => scala213Version
|
||||
case twoTwelve if twoTwelve.startsWith("2.12") => scala212Version
|
||||
case three if three.startsWith("3.0") => scala3Version
|
||||
case three if three.startsWith("3.") => scala3Version
|
||||
case "default" => scala213Version
|
||||
case other =>
|
||||
throw new IllegalArgumentException(s"Unsupported scala version [$other]. Must be 2.12, 2.13 or 3.0.")
|
||||
throw new IllegalArgumentException(s"Unsupported scala version [$other]. Must be 2.12, 2.13 or 3.x.")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue