diqiu50 opened a new issue, #10862: URL: https://github.com/apache/gravitino/issues/10862
## What would you like to be improved? Trino connector submodules require Java 24 via Gradle toolchain. CI workflows only install JDK 17, so Gradle auto-downloads JDK 24 via the Foojay resolver plugin at build time. This download is unreliable — it occasionally fails due to network timeouts or rate limits, causing flaky CI failures. ## How should we improve? Two strategies: 1. **Pre-install JDK 24** in CI via `actions/setup-java@v4` (before JDK 17), then register its path with Gradle via `~/.gradle/gradle.properties`. This eliminates the Foojay download for workflows that must build Trino (5 workflows). 2. **Add `-PskipTrinoConnector` property** — conditionally exclude all Trino subprojects from `settings.gradle.kts`. Used in `gvfs-fuse-build-test.yml` where Trino is not needed. A shared composite action `.github/actions/setup-java-toolchains` encapsulates strategy 1 to avoid repeating the pattern across workflows. -- 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]
