apache / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://gravitino.apache.org
Apache License 2.0
910 stars 292 forks source link

[Improvement] Fix the gradle warning #4206

Open jerryshao opened 1 month ago

jerryshao commented 1 month ago

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

frankvicky commented 1 month ago

I would like to try to solve this issue, please assign it to me. Many thanks 😺

yuqi1129 commented 1 month ago

I would like to try to solve this issue, please assign it to me. Many thanks 😺

Nice, please go ahead, I will assign it to you.

justinmclean commented 2 weeks ago

@frankvicky How are you going this this? Are you still able to work on it?

frankvicky commented 2 weeks ago

Hi @justinmclean Unfortunately I dont have free cycle now, if this ticket is in a rush, feel free to reassign.