Merge branch '1.12.x' into fix/9185-jprocess-client-stdio

This commit is contained in:
eugene yokota 2026-05-25 14:05:49 -04:00 committed by GitHub
commit e1b80bb688
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 44 additions and 5 deletions

View File

@ -1,4 +1,43 @@
ThisBuild / scalaOrganization := "io.github.scala-wasm"
ThisBuild / scalaVersion := "3.8.3-RC1-wasm-bin-SNAPSHOT"
// Regression test for sbt/sbt#8731: scalaOrganization must thread into the
// compiler-bridge ModuleID instead of being hardcoded to org.scala-lang.
// See sbt/sbt#9259 for why this is a settings-graph assertion rather than a
// real cross-org compile.
ThisBuild / resolvers += "Sonatype Central Snapshots" at "https://central.sonatype.com/repository/maven-snapshots/"
ThisBuild / scalaOrganization := "io.example.testorg"
ThisBuild / scalaVersion := "3.7.4"
lazy val checkScala3 =
taskKey[Unit]("scalaOrganization threads into scala3-sbt-bridge for Scala 3")
lazy val checkScala2 =
taskKey[Unit]("scalaOrganization threads into scala2-sbt-bridge for Scala 2.13.12+")
lazy val root = (project in file("."))
.settings(
checkScala3 := {
val m = scalaCompilerBridgeSource.value
assert(
m.organization == "io.example.testorg",
s"expected organization io.example.testorg, got $m",
)
assert(
m.name == "scala3-sbt-bridge",
s"expected name scala3-sbt-bridge, got $m",
)
}
)
lazy val s213 = (project in file("s213"))
.settings(
scalaVersion := "2.13.12",
checkScala2 := {
val m = scalaCompilerBridgeSource.value
assert(
m.organization == "io.example.testorg",
s"expected organization io.example.testorg, got $m",
)
assert(
m.name == "scala2-sbt-bridge",
s"expected name scala2-sbt-bridge, got $m",
)
},
)

View File

@ -1 +1,2 @@
> compile
> checkScala3
> s213/checkScala2