Skip to content

Commit

Permalink
Actually, google-java-format works on java 17 and up
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrail committed Sep 16, 2024
1 parent f4c50bc commit 1785475
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildSrc/src/main/groovy/rhino.java-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ test {

spotless {
// There is no version of googleJavaFormat that works for Java 11 and 17,
// and different versions format differently. For now, only run spotless on Java 11.
// This will have to be changed when Java 11 support is removed.
if (JavaVersion.current() == JavaVersion.VERSION_21) {
// and different versions format differently. We're using a version that
// requires at least Java 17.
if (JavaVersion.current() >= JavaVersion.VERSION_17) {
java {
googleJavaFormat('1.23.0').aosp()
}
Expand Down

0 comments on commit 1785475

Please sign in to comment.