Title: Migrate to sbt 2 by xerial · Pull Request #998 · msgpack/msgpack-java · GitHub
Open Graph Title: Migrate to sbt 2 by xerial · Pull Request #998 · msgpack/msgpack-java
X Title: Migrate to sbt 2 by xerial · Pull Request #998 · msgpack/msgpack-java
Description: Summary Bump sbt 1.12.13 -> 2.0.1, unblocked now that sbt-jcheckstyle 0.3.0 publishes an sbt2 cross-build (supersedes #997, which only bumped build.properties and isn't sufficient on its own) Bump sbt-jcheckstyle 0.2.1 -> 0.3.0 and sbt-osgi 0.10.0 -> 0.11.0-RC1 (the only version with a published sbt2 cross-build so far); sbt-pgp, sbt-scalafmt, and sbt-dynver already have sbt2 cross-builds at their current versions Fix build.sbt for sbt 2's new task engine: wrap the jcheckStyle-dependsOn compile overrides in Def.uncached(...) (CompileAnalysis has no JsonFormat to cache against), and clear new Scala 3.8 strictness warnings (implicitConversions import, method-call dependsOn syntax) sbt 2 itself requires JDK 17+ to run, but CI still needs to verify the library at runtime on JDK 8/11/17/21/24, and release.yml/snapshot.yml previously launched ./sbt on JDK 8/11 directly. Decoupled "JDK running sbt" from "JDK under test" via Test / fork + Test / javaHome (driven by a TEST_JAVA_HOME env var), and updated CI.yml/release.yml/snapshot.yml to install a fixed modern JDK (21) to launch sbt while forking tests onto the matrix JDK. Published bytecode is unaffected since it's already pinned to 1.8 via javacOptions. Test plan ./sbt clean compile / Test/compile — succeeds, checkstyle passes ./sbt clean test — full suite passes (193 tests, 0 failures/errors) on a freshly cleared sbt2 cache ./sbt jcheckStyle / ./sbt scalafmtCheckAll — pass ./sbt package / ./sbt publishLocal — succeed (exercises sbt-osgi, sbt-pgp, sbt-dynver) CI run on this PR (JDK 8/11/17/21/24 matrix + code_format) — verifying the JDK-decoupling approach end-to-end, since it can't be fully tested locally (only one local JDK available) 🤖 Generated with Claude Code
Open Graph Description: Summary Bump sbt 1.12.13 -> 2.0.1, unblocked now that sbt-jcheckstyle 0.3.0 publishes an sbt2 cross-build (supersedes #997, which only bumped build.properties and isn't sufficient on its ow...
X Description: Summary Bump sbt 1.12.13 -> 2.0.1, unblocked now that sbt-jcheckstyle 0.3.0 publishes an sbt2 cross-build (supersedes #997, which only bumped build.properties and isn't sufficient o...
Opengraph URL: https://github.com/msgpack/msgpack-java/pull/998
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d862b51a-c635-5b02-db58-e042523829f0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DAEA:399DB3:980577:DDA7DF:6A54B040 |
| html-safe-nonce | 7687e7ceac4b8bb3a8c974faac5244871ada5194d8088bd74ce5df21a1999170 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUVBOjM5OURCMzo5ODA1Nzc6RERBN0RGOjZBNTRCMDQwIiwidmlzaXRvcl9pZCI6IjcwMjg0NDc4MDUzODQ3MzI3MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6ca9a7ae0e76968aa9a8a40ed259c0dd890815fc58b02926f4db83bc610907c1 |
| hovercard-subject-tag | pull_request:3965806005 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/msgpack/msgpack-java/pull/998/files |
| twitter:image | https://avatars.githubusercontent.com/u/57538?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/57538?s=400&v=4 |
| og:image:alt | Summary Bump sbt 1.12.13 -> 2.0.1, unblocked now that sbt-jcheckstyle 0.3.0 publishes an sbt2 cross-build (supersedes #997, which only bumped build.properties and isn't sufficient on its ow... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/msgpack/msgpack-java git https://github.com/msgpack/msgpack-java.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 1971346 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1971346 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-java |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width