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 Feb 14, 2024
1 parent 459b5bf commit 6eee1b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Expand Up @@ -3,7 +3,7 @@ import sbt._

object Dependencies {
lazy val awsVersion = "1.11.678"
lazy val atomLibVersion = "2.0.0-PREVIEW.fix-tests-under-java-17.2024-01-18T1039.b4d55b3d"
lazy val atomLibVersion = "2.0.0"
lazy val jacksonVersion = "2.13.4"
lazy val jacksonDatabindVersion = "2.13.4.2"

Expand Down

0 comments on commit 6eee1b8

Please sign in to comment.