Skip to content

Commit

Permalink
Build for Scala Native, Scala 3
Browse files Browse the repository at this point in the history
Since 0.4.4, Scala Native supports Scala 3.

The update to the munit testing library was necessary because the 0.x
series does not support Scala Native on 3 [1].

[1]: scalameta/munit#511
  • Loading branch information
jodersky committed Aug 6, 2022
1 parent d31a91f commit 7589174
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ lazy val runtime = (projectMatrix in file("scalapb-runtime"))
)
)
.nativePlatform(
scalaVersions = Seq(Scala212, Scala213),
scalaVersions = Seq(Scala212, Scala213, Scala3),
settings = sharedNativeSettings ++ Seq(
libraryDependencies += protobufRuntimeScala.value,
Compile / unmanagedResourceDirectories += (LocalRootProject / baseDirectory).value / "third_party",
Expand Down Expand Up @@ -278,7 +278,7 @@ lazy val lenses = (projectMatrix in file("lenses"))
)
)
.nativePlatform(
scalaVersions = Seq(Scala212, Scala213),
scalaVersions = Seq(Scala212, Scala213, Scala3),
settings = sharedNativeSettings
)

Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object Dependencies {
val annotationApi = "1.3.2"
val cats = "2.6.1"
val mockito = "4.6.1"
val munit = "0.7.29"
val munit = "1.0.0-M6"
val scalaTest = "3.2.13"
val scalaTestPlusMockito = "3.1.0.0"
val scalaTestPlusScalaCheck = "3.2.11.0"
Expand Down

0 comments on commit 7589174

Please sign in to comment.