Skip to content

Commit

Permalink
Update nscplugin, sbt-scala-native to 0.5.1 (#1682)
Browse files Browse the repository at this point in the history
* Update nscplugin, sbt-scala-native to 0.5.1

* Use `nativeConfig` to enable link stubs

* Update scala-collection-compat to 2.12.0

* Update munit to 1.0.0-M12

* Use Java 11 to run `grpcRuntimeJVM*/test`

* Bump protobuf-scala-runtime to 0.8.15

---------

Co-authored-by: Scala Steward <[email protected]>
Co-authored-by: Nadav Samet <[email protected]>
  • Loading branch information
3 people committed Jun 1, 2024
1 parent b2d3ca9 commit d1b9c64
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ addCommandAlias("fmt", "all scalafmtSbt scalafmtAll")
ThisBuild / PB.protocVersion := versions.protobuf

lazy val sharedNativeSettings = List(
nativeLinkStubs := true // for utest
nativeConfig ~= { _.withLinkStubs(true) } // for utest
)

lazy val root: Project =
Expand Down
6 changes: 3 additions & 3 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ object Dependencies {
val grpc = "1.62.2"
val protobuf = "3.19.6"
val silencer = "1.7.16"
val collectionCompat = "2.11.0"
val collectionCompat = "2.12.0"
val coursier = "2.1.9"
val protocGen = "0.9.7"
val protobufRuntimeScala = "0.8.14"
val protobufRuntimeScala = "0.8.15"
val commonsCodec = "1.16.1"

// For testing
val annotationApi = "1.3.2"
val cats = "2.6.1"
val mockito = "5.11.0"
val munit = "1.0.0-M8"
val munit = "1.0.0-M12"
val scalaTest = "3.2.18"
val scalaTestPlusMockito = "3.1.0.0"
val scalaTestPlusScalaCheck = "3.2.18.0"
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.16")

addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)

addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.17")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.1")

addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3")

Expand Down
4 changes: 3 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ sbt \
lensesJVM${SCALA_VERSION}/test \
compilerPluginJVM${SCALA_VERSION}/test \
runtimeJVM${SCALA_VERSION}/test \
grpcRuntimeJVM${SCALA_VERSION}/test \
proptestJVM${SCALA_VERSION}/test

# grpcRuntimeJVM*/test uses mockito 5.x and requires Java 11
sbt -java-home ${JAVA_HOME_11_X64} grpcRuntimeJVM${SCALA_VERSION}/test

if [[ $SCALA_VERSION = 2* ]]; then
sbt \
lensesJS${SCALA_VERSION}/test \
Expand Down

0 comments on commit d1b9c64

Please sign in to comment.