[2.x] fix sjson downgrade

This commit is contained in:
Anatolii Kmetiuk 2026-07-11 11:44:21 +09:00
parent 3b36560a8c
commit d038ca92f3
5 changed files with 18 additions and 1 deletions

View File

@ -3624,7 +3624,8 @@ object Classpaths {
o %% "librarymanagement-ivy",
o %% "util-logging",
o %% "util-position",
o %% "io"
o %% "io",
"com.eed3si9n" %% "sjson-new-core"
)
if (isMeta && !force) excludes.toVector ++ sbtModulesExcludes
else excludes

View File

@ -0,0 +1,2 @@
ThisBuild / scalaVersion := "3.8.4"
ThisBuild / organization := "com.example"

View File

@ -0,0 +1,6 @@
import sbt.*
import sbt.Keys.*
object Example {
lazy val settings = Seq(javaOptions += "-Dfoo=bar")
}

View File

@ -0,0 +1 @@
addSbtPlugin("ch.epfl.scala" % "sbt-github-dependency-submission" % "3.2.3")

View File

@ -0,0 +1,7 @@
# Issue 8207: a metabuild plugin must not downgrade sjson-new core.
# Loading this build exercises the metabuild compile, which summons
# the JsonFormat for String via the caching macro on javaOptions.
# When the plugin downgrades sjson-new core on the metabuild
# classpath, project load fails with a missing given. A successful
# load is the regression assertion.
> projects