cool9850311 commented on PR #6077:
URL: https://github.com/apache/gravitino/pull/6077#issuecomment-2572308180
> So what is the root cause here?
By default, the spotlessCheck task is included under :build:check.
Dependency modules only execute the compile task, not the full build.
I have found two possible solutions:
1. Ensure that all dependency modules explicitly execute spotlessCheck(the
commit).
2. Bind the spotlessCheck task to the compileJava task, ensuring it runs
automatically during compilation(code below).
```
tasks.named("compileJava").configure {
dependsOn("spotlessCheck")
}
```
```
| | \--- :iceberg:iceberg-rest-server:jar
| | +--- :iceberg:iceberg-rest-server:classes
| | | +--- :iceberg:iceberg-rest-server:compileJava
| | | | +--- :api:jar
| | | | | +--- :api:classes
| | | | | | +--- :api:compileJava
| | | | | | \--- :api:processResources
| | | | | \--- :api:compileJava *
| | | | +--- :common:jar
| | | | | +--- :common:classes
| | | | | | +--- :common:compileJava
| | | | | | | \--- :api:jar *
| | | | | | \--- :common:processResources
| | | | | \--- :common:compileJava *
| | | | +--- :core:jar
| | | | | +--- :core:classes
| | | | | | +--- :core:compileJava
| | | | | | | +--- :api:jar *
| | | | | | | +--- :common:jar *
| | | | | | | \---
:catalogs:catalog-common:jar
| | | | | | | +---
:catalogs:catalog-common:classes
| | | | | | | | +---
:catalogs:catalog-common:compileJava
| | | | | | | | \---
:catalogs:catalog-common:processResources
| | | | | | | \---
:catalogs:catalog-common:compileJava *
| | | | | | \--- :core:processResources
| | | | | \--- :core:compileJava *
| | | | +--- :server-common:jar
| | | | | +--- :server-common:classes
| | | | | | +--- :server-common:compileJava
| | | | | | | +--- :api:jar *
| | | | | | | +--- :common:jar *
| | | | | | | \--- :core:jar *
| | | | | | \---
:server-common:processResources
| | | | | \--- :server-common:compileJava *
| | | | +--- :catalogs:catalog-common:jar *
| | | | +--- :clients:client-java:jar
| | | | | +--- :clients:client-java:classes
| | | | | | +---
:clients:client-java:compileJava
| | | | | | | +--- :api:jar *
| | | | | | | \--- :common:jar *
| | | | | | \---
:clients:client-java:processResources
| | | | | \---
:clients:client-java:compileJava *
| | | | \--- :iceberg:iceberg-common:jar
| | | | +--- :iceberg:iceberg-common:classes
| | | | | +---
:iceberg:iceberg-common:compileJava
| | | | | | +--- :api:jar *
| | | | | | +--- :common:jar *
| | | | | | +--- :core:jar *
| | | | | | \---
:catalogs:catalog-common:jar *
| | | | | \---
:iceberg:iceberg-common:processResources
| | | | \---
:iceberg:iceberg-common:compileJava *
| | | \---
:iceberg:iceberg-rest-server:processResources
| | \--- :iceberg:iceberg-rest-server:compileJava *```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]