Thanks for the response. I see now the problem is the compiler version. The runner’s default Java version is 11, so I need to install 17:
sudo:
- apt-get install -y openjdk-17-jdk-headless
- update-alternatives --auto java
Related: New app, pipeline failed with bad JAVA_VERSION
The build now succeeds, thank you.