takahirom / roborazzi

Make JVM Android integration test visible 🤖📸
https://takahirom.github.io/roborazzi/
Apache License 2.0
651 stars 24 forks source link

Update toolchain to Java 17 for all modules #365

Closed mannodermaus closed 1 month ago

mannodermaus commented 1 month ago

The source & target compatibility of all Roborazzi JAR/AAR artifacts remains at Java 11. This update to Java 17 could improve build speed a little, but primarily it paves the way towards matching the minimum Java version imposed by Android Gradle Plugin (since 8.0.0). Also, we will need to update to 17 eventually to address a failure we're seeing in the roborazzi-junit5 PR, which relies on an extension that was built against Java 17 internally.

Remove all usages of JavaVersion.VERSION_11 and move them into the central build.gradle build script. Unfortunately, this still needs to be duplicated for the include-build projects, but at least those can use the same version definitions from the version catalog.