findepi commented on PR #10474: URL: https://github.com/apache/iceberg/pull/10474#issuecomment-2220510049
Since spotless plugin is not installed on JDK 21, ./gradlew spotlessApply would fail with ``` $ JAVA_HOME=~/.jenv/versions/21 ./gradlew spotlessApply FAILURE: Build failed with an exception. * What went wrong: Task 'spotlessApply' not found in root project 'iceberg' and its subprojects. * Try: > Run gradlew tasks to get a list of available tasks. > For more on name expansion, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:name_abbreviation in the Gradle documentation. > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 14s ``` Added spotlessApply stub, for more actionable message: ``` $ JAVA_HOME=~/.jenv/versions/21 ./gradlew spotlessApply FAILURE: Build failed with an exception. * Where: Script '/Users/findepi/repos/iceberg/baseline.gradle' line: 51 * What went wrong: A problem occurred evaluating script. > Spotless plugin is currently disabled when running on JDK 21 (until we drop JDK 8). To run spotlessApply please use a different JDK version. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 3s ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org