Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scala Steward can not run on this repo until it allows building under Java 21 #4261

Open
rtyley opened this issue Apr 9, 2024 · 0 comments

Comments

@rtyley
Copy link
Member

rtyley commented Apr 9, 2024

See guardian/scala-steward-public-repos#67 ... we're now running our Scala Steward workflow with Java 21 LTS, which means that all projects that want to have Scala Steward updates (like this one) need to be able to build under Java 21 (even if the projects are still running in production on Java 8).

As guardian/grid is on some mildly old versions of sbt/Scala that can't handle Java 21, it currently is causing the Scala Steward job to fail:

2024-04-09 09:56:46,335 ERROR Steward guardian/grid failed
org.scalasteward.core.io.process$ProcessFailedException: '"SBT_OPTS=-Xmx2048m -Xss8m -XX:MaxMetaspaceSize=512m" sbt -Dsbt.color=false -Dsbt.log.noformat=true -Dsbt.supershell=false -Dsbt.server.forcestart=true ;+ stewardDependencies;reload plugins;stewardDependencies' exited with code 1.
copying runtime jar...
[info] [launcher] getting org.scala-sbt sbt 1.6.2 (this may take some time)...
[info] [launcher] getting Scala 2.12.15 (for sbt)...
[info] welcome to sbt 1.6.2 (Amazon.com Inc. Java 21.0.2)
error:
bad constant pool index: 0 at pos: 48461
while compiling:
during phase: globalPhase=, enteringPhase=
library version: version 2.12.15
compiler version: version 2.12.15
reconstructed args: -classpath /home/runner/.sbt/boot/scala-2.12.15/lib/scala-library.jar -Yrangepos

(unfortunately the Scala Steward run failing affects everyone, see guardian/scala-steward-public-repos#60 - so I've removed guardian/grid from Scala Steward until this PR is merged)

Being able to build with Java 21 requires using recent versions of Scala (2.12.18+) and sbt (1.9.0+) - guardian/mobile-save-for-later#105 should provide a good example of how to fix a repo up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant