Skip to content

Commit

Permalink
Scala Native Scala 3 (#267)
Browse files Browse the repository at this point in the history
* Scala Native Scala 3

* Specify Scala Native version explicitly again

* Update versions

* Update versions

Co-authored-by: Kai <450507+neko-kai@users.noreply.github.com>
  • Loading branch information
sideeffffect and neko-kai committed Apr 28, 2022
1 parent e8778c6 commit f4b6a45
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
26 changes: 14 additions & 12 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ lazy val `izumi-reflect-thirdparty-boopickle-shaded` = crossProject(JVMPlatform,
}
},
Compile / doc / sources := { (isSnapshot.value, scalaVersion.value) match {
case (_, "3.1.1") => Seq(
case (_, "3.1.2") => Seq(

)
case (_, _) => (Compile / doc / sources).value
Expand Down Expand Up @@ -153,7 +153,7 @@ lazy val `izumi-reflect-thirdparty-boopickle-shaded` = crossProject(JVMPlatform,
} },
scalacOptions -= "-Wconf:any:error",
mimaPreviousArtifacts := { (isSnapshot.value, scalaVersion.value) match {
case (_, "3.1.1") => Set.empty
case (_, "3.1.2") => Set.empty
case (_, _) => Set(organization.value %% name.value % "1.0.0")
} },
scalacOptions ++= { (isSnapshot.value, scalaVersion.value) match {
Expand All @@ -177,7 +177,7 @@ lazy val `izumi-reflect-thirdparty-boopickle-shaded` = crossProject(JVMPlatform,
)
.jvmSettings(
crossScalaVersions := Seq(
"3.1.1",
"3.1.2",
"2.13.8",
"2.12.15",
"2.11.12"
Expand All @@ -186,7 +186,7 @@ lazy val `izumi-reflect-thirdparty-boopickle-shaded` = crossProject(JVMPlatform,
)
.jsSettings(
crossScalaVersions := Seq(
"3.1.1",
"3.1.2",
"2.13.8",
"2.12.15",
"2.11.12"
Expand All @@ -197,6 +197,7 @@ lazy val `izumi-reflect-thirdparty-boopickle-shaded` = crossProject(JVMPlatform,
)
.nativeSettings(
crossScalaVersions := Seq(
"3.1.2",
"2.13.8",
"2.12.15",
"2.11.12"
Expand Down Expand Up @@ -285,7 +286,7 @@ lazy val `izumi-reflect` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
}
},
Compile / doc / sources := { (isSnapshot.value, scalaVersion.value) match {
case (_, "3.1.1") => Seq(
case (_, "3.1.2") => Seq(

)
case (_, _) => (Compile / doc / sources).value
Expand Down Expand Up @@ -363,7 +364,7 @@ lazy val `izumi-reflect` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
} },
scalacOptions -= "-Wconf:any:error",
mimaPreviousArtifacts := { (isSnapshot.value, scalaVersion.value) match {
case (_, "3.1.1") => Set.empty
case (_, "3.1.2") => Set.empty
case (_, _) => Set(organization.value %% name.value % "1.0.0")
} },
scalacOptions ++= { (isSnapshot.value, scalaVersion.value) match {
Expand All @@ -386,7 +387,7 @@ lazy val `izumi-reflect` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
)
.jvmSettings(
crossScalaVersions := Seq(
"3.1.1",
"3.1.2",
"2.13.8",
"2.12.15",
"2.11.12"
Expand All @@ -395,7 +396,7 @@ lazy val `izumi-reflect` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
)
.jsSettings(
crossScalaVersions := Seq(
"3.1.1",
"3.1.2",
"2.13.8",
"2.12.15",
"2.11.12"
Expand All @@ -406,6 +407,7 @@ lazy val `izumi-reflect` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
)
.nativeSettings(
crossScalaVersions := Seq(
"3.1.2",
"2.13.8",
"2.12.15",
"2.11.12"
Expand Down Expand Up @@ -467,7 +469,7 @@ lazy val `izumi-reflect-root-jvm` = (project in file(".agg/.agg-jvm"))
.settings(
publish / skip := true,
crossScalaVersions := Seq(
"3.1.1",
"3.1.2",
"2.13.8",
"2.12.15",
"2.11.12"
Expand All @@ -482,7 +484,7 @@ lazy val `izumi-reflect-root-js` = (project in file(".agg/.agg-js"))
.settings(
publish / skip := true,
crossScalaVersions := Seq(
"3.1.1",
"3.1.2",
"2.13.8",
"2.12.15",
"2.11.12"
Expand All @@ -497,7 +499,7 @@ lazy val `izumi-reflect-root-native` = (project in file(".agg/.agg-native"))
.settings(
publish / skip := true,
crossScalaVersions := Seq(
"3.1.1",
"3.1.2",
"2.13.8",
"2.12.15",
"2.11.12"
Expand Down Expand Up @@ -534,7 +536,7 @@ lazy val `izumi-reflect-root` = (project in file("."))
"-XDignore.symbol.file"
),
crossScalaVersions := Nil,
scalaVersion := "3.1.1",
scalaVersion := "3.1.2",
ThisBuild / organization := "dev.zio",
sonatypeProfileName := "dev.zio",
sonatypeSessionName := s"[sbt-sonatype] ${name.value} ${version.value} ${java.util.UUID.randomUUID}",
Expand Down
7 changes: 4 additions & 3 deletions project/Deps.sc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ object Izumi {
final val scala211 = ScalaVersion("2.11.12")
final val scala212 = ScalaVersion("2.12.15")
final val scala213 = ScalaVersion("2.13.8")
final val scala300 = ScalaVersion("3.1.1")
final val scala300 = ScalaVersion("3.1.2")

// launch with `./sbtgen.sc 2` to use 2.13 in Intellij
var targetScala = Seq(scala300, scala213, scala212, scala211)
Expand Down Expand Up @@ -56,7 +56,8 @@ object Izumi {

val settings = GlobalSettings(
groupId = "dev.zio",
sbtVersion = None
sbtVersion = None,
scalaNativeVersion = Version.VExpr("PV.scala_native_version")
)

object Deps {
Expand Down Expand Up @@ -92,7 +93,7 @@ object Izumi {
)
private val nativePlatform = PlatformEnv(
platform = Platform.Native,
language = targetScala.filterNot(_.isDotty),
language = targetScala,
settings = Seq(
"coverageEnabled" := false
)
Expand Down
4 changes: 2 additions & 2 deletions project/Versions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@

object V {
val kind_projector = "0.13.2"
val collection_compat = "2.6.0"
val scalatest = "3.2.11"
val collection_compat = "2.7.0"
val scalatest = "3.2.12"
}
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.20.0")
addSbtPlugin("org.scala-js" % "sbt-jsdependencies" % "1.0.2")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.1.0")

addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.3")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % PV.scala_native_version)

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

Expand Down
1 change: 1 addition & 0 deletions project/project/PluginVersions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ object PV {
val sbt_pgp = "2.1.1"

val sbt_mima_version = "1.0.1"
val scala_native_version = "0.4.4"
}

0 comments on commit f4b6a45

Please sign in to comment.