Skip to content

Commit

Permalink
Set CI Java version to match AMI Java version (11)
Browse files Browse the repository at this point in the history
I'm not sure why I set the CI Java version to 17 (other than I have
started using that Java version elsewhere) - but as the AMI is only
`editorial-tools-focal-java11-ARM-WITH-cdk-base`, when the server
tried to run code that had been compiled with Java 17, it gave an
UnsupportedClassVersionError like this in the logs:

play.api.UnexpectedException: Unexpected exception[RuntimeException: java.lang.UnsupportedClassVersionError: controllers/routes has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0]
	at play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:384)
  • Loading branch information
rtyley committed Jan 26, 2024
1 parent 459b5bf commit d39b421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17
java-version: 11
cache: sbt
- name: CI yarn
shell: bash
Expand Down

0 comments on commit d39b421

Please sign in to comment.