debuglevel / greeting-microservice

Micronaut microservice template written in Kotlin
The Unlicense
5 stars 2 forks source link

Update to JDK17 (in September 2021) #12

Closed debuglevel closed 2 years ago

debuglevel commented 3 years ago

LTS JDK 17 should be ready in September 2021

debuglevel commented 3 years ago

maybe see https://github.com/johanjanssen/JavaUpgrades for upgrading guidelines (e.g. javax.xml stuff)

debuglevel commented 2 years ago

Just using docker image version 17.0.2 does not work;

#19 9.050 * What went wrong:
#19 9.051 Could not compile settings file '/src/settings.gradle'.
#19 9.051 > startup failed:
#19 9.055   General error during semantic analysis: Unsupported class file major version 61
#19 9.057
#19 9.059   java.lang.IllegalArgumentException: Unsupported class file major version 61

see: https://github.com/johanjanssen/JavaUpgrades#solution-11 Gradle 7.3 should support Java 17. So we're doing #25 first.