Skip to content

Commit

Permalink
dependency updates, dropped 2.11 mode for JS and Native builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Apr 8, 2024
1 parent fe2fa44 commit dbf2293
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 19 deletions.
60 changes: 43 additions & 17 deletions build.sbt
Expand Up @@ -39,23 +39,33 @@ lazy val `izumi-reflect-thirdparty-boopickle-shaded` = crossProject(JVMPlatform,
case _ => Seq.empty
}
},
Test / unmanagedSourceDirectories ++= {
val version = scalaVersion.value
val crossVersions = crossScalaVersions.value
import Ordering.Implicits._
val ltEqVersions = crossVersions.map(CrossVersion.partialVersion).filter(_ <= CrossVersion.partialVersion(version)).flatten
(Test / unmanagedSourceDirectories).value.flatMap {
case dir if dir.getPath.endsWith("scala") => ltEqVersions.map { case (m, n) => file(dir.getPath + s"-$m.$n+") }
case _ => Seq.empty
}
},
Compile / unmanagedSourceDirectories ++= {
val version = scalaVersion.value
val crossVersions = crossScalaVersions.value
import Ordering.Implicits._
val ltEqVersions = crossVersions.map(CrossVersion.partialVersion).filter(_ >= CrossVersion.partialVersion(version)).flatten
val gtEqVersions = crossVersions.map(CrossVersion.partialVersion).filter(_ >= CrossVersion.partialVersion(version)).flatten
(Compile / unmanagedSourceDirectories).value.flatMap {
case dir if dir.getPath.endsWith("scala") => ltEqVersions.map { case (m, n) => file(dir.getPath + s"-$m.$n-") }
case dir if dir.getPath.endsWith("scala") => gtEqVersions.map { case (m, n) => file(dir.getPath + s"-$m.$n-") }
case _ => Seq.empty
}
},
Test / unmanagedSourceDirectories ++= {
val version = scalaVersion.value
val crossVersions = crossScalaVersions.value
import Ordering.Implicits._
val ltEqVersions = crossVersions.map(CrossVersion.partialVersion).filter(_ <= CrossVersion.partialVersion(version)).flatten
val gtEqVersions = crossVersions.map(CrossVersion.partialVersion).filter(_ >= CrossVersion.partialVersion(version)).flatten
(Test / unmanagedSourceDirectories).value.flatMap {
case dir if dir.getPath.endsWith("scala") => ltEqVersions.map { case (m, n) => file(dir.getPath + s"-$m.$n+") }
case dir if dir.getPath.endsWith("scala") => gtEqVersions.map { case (m, n) => file(dir.getPath + s"-$m.$n-") }
case _ => Seq.empty
}
},
Expand All @@ -64,9 +74,10 @@ lazy val `izumi-reflect-thirdparty-boopickle-shaded` = crossProject(JVMPlatform,
import Ordering.Implicits._
val ltEqVersions = crossVersions.map(CrossVersion.partialVersion).sorted.flatten
def joinV = (_: Product).productIterator.mkString(".")
val allRangeVersions = (2 to math.max(2, ltEqVersions.size - 1))
val allRangeVersions = (2 to math.max(2, ltEqVersions.size))
.flatMap(i => ltEqVersions.sliding(i).filter(_.size == i))
.map(l => (l.head, l.last))
.distinct
CrossVersion.partialVersion(scalaVersion.value).toList.flatMap {
version =>
val rangeVersions = allRangeVersions
Expand All @@ -83,9 +94,10 @@ lazy val `izumi-reflect-thirdparty-boopickle-shaded` = crossProject(JVMPlatform,
import Ordering.Implicits._
val ltEqVersions = crossVersions.map(CrossVersion.partialVersion).sorted.flatten
def joinV = (_: Product).productIterator.mkString(".")
val allRangeVersions = (2 to math.max(2, ltEqVersions.size - 1))
val allRangeVersions = (2 to math.max(2, ltEqVersions.size))
.flatMap(i => ltEqVersions.sliding(i).filter(_.size == i))
.map(l => (l.head, l.last))
.distinct
CrossVersion.partialVersion(scalaVersion.value).toList.flatMap {
version =>
val rangeVersions = allRangeVersions
Expand Down Expand Up @@ -151,6 +163,7 @@ lazy val `izumi-reflect-thirdparty-boopickle-shaded` = crossProject(JVMPlatform,
case (_, "2.13.11") => Seq(
"-release:8",
"-explaintypes",
"-Xsource:3-cross",
if (insideCI.value) "-Wconf:any:error" else "-Wconf:any:warning",
"-Wconf:cat=optimizer:warning",
"-Wconf:cat=other-match-analysis:error",
Expand Down Expand Up @@ -212,7 +225,7 @@ lazy val `izumi-reflect-thirdparty-boopickle-shaded` = crossProject(JVMPlatform,
crossScalaVersions := Seq(
"3.2.2",
"2.13.11",
"2.12.17",
"2.12.17"
),
scalaVersion := crossScalaVersions.value.head,
coverageEnabled := false,
Expand All @@ -222,7 +235,7 @@ lazy val `izumi-reflect-thirdparty-boopickle-shaded` = crossProject(JVMPlatform,
crossScalaVersions := Seq(
"3.2.2",
"2.13.11",
"2.12.17",
"2.12.17"
),
scalaVersion := crossScalaVersions.value.head,
coverageEnabled := false,
Expand Down Expand Up @@ -266,23 +279,33 @@ lazy val `izumi-reflect` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
case _ => Seq.empty
}
},
Test / unmanagedSourceDirectories ++= {
val version = scalaVersion.value
val crossVersions = crossScalaVersions.value
import Ordering.Implicits._
val ltEqVersions = crossVersions.map(CrossVersion.partialVersion).filter(_ <= CrossVersion.partialVersion(version)).flatten
(Test / unmanagedSourceDirectories).value.flatMap {
case dir if dir.getPath.endsWith("scala") => ltEqVersions.map { case (m, n) => file(dir.getPath + s"-$m.$n+") }
case _ => Seq.empty
}
},
Compile / unmanagedSourceDirectories ++= {
val version = scalaVersion.value
val crossVersions = crossScalaVersions.value
import Ordering.Implicits._
val ltEqVersions = crossVersions.map(CrossVersion.partialVersion).filter(_ >= CrossVersion.partialVersion(version)).flatten
val gtEqVersions = crossVersions.map(CrossVersion.partialVersion).filter(_ >= CrossVersion.partialVersion(version)).flatten
(Compile / unmanagedSourceDirectories).value.flatMap {
case dir if dir.getPath.endsWith("scala") => ltEqVersions.map { case (m, n) => file(dir.getPath + s"-$m.$n-") }
case dir if dir.getPath.endsWith("scala") => gtEqVersions.map { case (m, n) => file(dir.getPath + s"-$m.$n-") }
case _ => Seq.empty
}
},
Test / unmanagedSourceDirectories ++= {
val version = scalaVersion.value
val crossVersions = crossScalaVersions.value
import Ordering.Implicits._
val ltEqVersions = crossVersions.map(CrossVersion.partialVersion).filter(_ <= CrossVersion.partialVersion(version)).flatten
val gtEqVersions = crossVersions.map(CrossVersion.partialVersion).filter(_ >= CrossVersion.partialVersion(version)).flatten
(Test / unmanagedSourceDirectories).value.flatMap {
case dir if dir.getPath.endsWith("scala") => ltEqVersions.map { case (m, n) => file(dir.getPath + s"-$m.$n+") }
case dir if dir.getPath.endsWith("scala") => gtEqVersions.map { case (m, n) => file(dir.getPath + s"-$m.$n-") }
case _ => Seq.empty
}
},
Expand All @@ -291,9 +314,10 @@ lazy val `izumi-reflect` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
import Ordering.Implicits._
val ltEqVersions = crossVersions.map(CrossVersion.partialVersion).sorted.flatten
def joinV = (_: Product).productIterator.mkString(".")
val allRangeVersions = (2 to math.max(2, ltEqVersions.size - 1))
val allRangeVersions = (2 to math.max(2, ltEqVersions.size))
.flatMap(i => ltEqVersions.sliding(i).filter(_.size == i))
.map(l => (l.head, l.last))
.distinct
CrossVersion.partialVersion(scalaVersion.value).toList.flatMap {
version =>
val rangeVersions = allRangeVersions
Expand All @@ -310,9 +334,10 @@ lazy val `izumi-reflect` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
import Ordering.Implicits._
val ltEqVersions = crossVersions.map(CrossVersion.partialVersion).sorted.flatten
def joinV = (_: Product).productIterator.mkString(".")
val allRangeVersions = (2 to math.max(2, ltEqVersions.size - 1))
val allRangeVersions = (2 to math.max(2, ltEqVersions.size))
.flatMap(i => ltEqVersions.sliding(i).filter(_.size == i))
.map(l => (l.head, l.last))
.distinct
CrossVersion.partialVersion(scalaVersion.value).toList.flatMap {
version =>
val rangeVersions = allRangeVersions
Expand Down Expand Up @@ -378,6 +403,7 @@ lazy val `izumi-reflect` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
case (_, "2.13.11") => Seq(
"-release:8",
"-explaintypes",
"-Xsource:3-cross",
if (insideCI.value) "-Wconf:any:error" else "-Wconf:any:warning",
"-Wconf:cat=optimizer:warning",
"-Wconf:cat=other-match-analysis:error",
Expand Down Expand Up @@ -438,7 +464,7 @@ lazy val `izumi-reflect` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
crossScalaVersions := Seq(
"3.2.2",
"2.13.11",
"2.12.17",
"2.12.17"
),
scalaVersion := crossScalaVersions.value.head,
coverageEnabled := false,
Expand All @@ -448,7 +474,7 @@ lazy val `izumi-reflect` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
crossScalaVersions := Seq(
"3.2.2",
"2.13.11",
"2.12.17",
"2.12.17"
),
scalaVersion := crossScalaVersions.value.head,
coverageEnabled := false,
Expand Down Expand Up @@ -646,7 +672,7 @@ lazy val `izumi-reflect-root` = (project in file("."))
),
ThisBuild / mimaFailOnProblem := true,
ThisBuild / mimaFailOnNoPrevious := false,
libraryDependencies += "io.7mind.izumi.sbt" % "sbtgen_2.13" % "0.0.97" % Provided
libraryDependencies += "io.7mind.izumi.sbt" % "sbtgen_2.13" % "0.0.101" % Provided
)
.aggregate(
`izumi-reflect-aggregate`
Expand Down
2 changes: 1 addition & 1 deletion project/Deps.sc
@@ -1,4 +1,4 @@
import $ivy.`io.7mind.izumi.sbt:sbtgen_2.13:0.0.97`
import $ivy.`io.7mind.izumi.sbt:sbtgen_2.13:0.0.101`
import izumi.sbtgen._
import izumi.sbtgen.model._

Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Expand Up @@ -18,7 +18,7 @@ addSbtPlugin("org.scala-native" % "sbt-scala-native" % PV.scala_n

////////////////////////////////////////////////////////////////////////////////

addSbtPlugin("io.7mind.izumi.sbt" % "sbt-izumi" % "0.0.97")
addSbtPlugin("io.7mind.izumi.sbt" % "sbt-izumi" % "0.0.101")

addSbtPlugin("com.jsuereth" % "sbt-pgp" % PV.sbt_pgp)

Expand Down

0 comments on commit dbf2293

Please sign in to comment.