You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make all-libraries and jdk scripted tests pass on both sbt versions
Modernise the two fixtures so they run under both sbt 1.x and sbt 2.x, and
remove the temporary sbt-2.x gating:
- Bump their Scala versions (2.12.10 / 2.13.1 / 2.13.8 -> 2.12.20 / 2.13.16) so
the sbt 2.x Zinc compiler bridge builds, and scalacheck to 1.18.1.
- all-libraries: the scala-library and scalacheck api doc URLs differ by sbt
version (autoAPIMappings reads the POM `apiURL` on sbt 1.x — e.g.
https://www.scala-lang.org/api/<v>/ and https://www.javadoc.io/doc/<...> — while
on sbt 2.x this plugin's own rules provide http://scala-lang.org/files/archive/
api/<v>/ and https://javadoc.io/page/<...>). Assert leniently (host + version)
so one test covers both.
- jdk: the scaladoc output directory is `target/api` on sbt 1.x but
`target/out/jvm/<...>/api` on sbt 2.x, so the hard-coded `$ exists` / `jgrep`
path no longer works. Move the file checks into a `checkDoc` task that locates
the directory via `Compile / doc / target`.
Verified locally (JDK 17): `++2.12.20 test` and `++3.8.4 test` both run all three
scripted tests plus the unit test green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments