Open
Description
What would you like to be improved?
We have many Gradle script build warning, I think we can improve to remove the warnings, for example:
> Configure project :web
Kotlin DSL property assignment is an incubating feature.
> Configure project :catalogs:catalog-lakehouse-iceberg
w: file:///Users/jerryshao/Projects/gravitino/catalogs/catalog-lakehouse-iceberg/build.gradle.kts:98:7: Variable 'runtimeJars' is never used
w: file:///Users/jerryshao/Projects/gravitino/catalogs/catalog-lakehouse-iceberg/build.gradle.kts:158:57: Unchecked cast: Any? to (Test) -> Unit
> Configure project :catalogs:catalog-lakehouse-paimon
w: file:///Users/jerryshao/Projects/gravitino/catalogs/catalog-lakehouse-paimon/build.gradle.kts:89:7: Variable 'runtimeJars' is never used
w: file:///Users/jerryshao/Projects/gravitino/catalogs/catalog-lakehouse-paimon/build.gradle.kts:145:57: Unchecked cast: Any? to (Test) -> Unit
> Configure project :iceberg:iceberg-rest-server
w: file:///Users/jerryshao/Projects/gravitino/iceberg/iceberg-rest-server/build.gradle.kts:83:7: Variable 'runtimeJars' is never used
w: file:///Users/jerryshao/Projects/gravitino/iceberg/iceberg-rest-server/build.gradle.kts:139:57: Unchecked cast: Any? to (Test) -> Unit
> Configure project :spark-connector:spark-3.3
w: file:///Users/jerryshao/Projects/gravitino/spark-connector/v3.3/spark/build.gradle.kts:159:57: Unchecked cast: Any? to (Test) -> Unit
> Configure project :spark-connector:spark-3.4
w: file:///Users/jerryshao/Projects/gravitino/spark-connector/v3.4/spark/build.gradle.kts:159:57: Unchecked cast: Any? to (Test) -> Unit
> Configure project :spark-connector:spark-3.5
w: file:///Users/jerryshao/Projects/gravitino/spark-connector/v3.5/spark/build.gradle.kts:161:57: Unchecked cast: Any? to (Test) -> Unit
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.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
Above are several warnings when we run gradle clean, I can fix it.
How should we improve?
No response
Activity