Actually, google-java-format works on java 17 and up

This commit is contained in:
Greg Brail 2024-09-16 16:18:05 -07:00
Родитель f4c50bcc34
Коммит 1785475efe
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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()
}