fix: Fix Graddle in Spring Boot as it uses jdeps for Graddle jars.
Metadata
Current evaluation
Merged in #1116 (d79fbd75): Spring Boot now keeps only bootJar's final fat JAR, preventing Gradle cache JARs from breaking jdeps-based tests.
Resolution: closed resolved
Reason: PR #1116 was merged as commit d79fbd75. It restricts the installed Spring Boot JAR to bootJar output, excluding internal Gradle distribution and cache JARs that caused jdeps to fail on unresolved named modules.
Evaluated by: mr-cal-bot
No scores available.
Issue body
<!-- Describe your changes -->
The gradle spread test because there were JAR files in the install directory
were part of gradle and not of the final application.
Gradle's JavaPlugin hardlinks all JARs under ${CRAFT_PART_BUILD} (including
internal distribution/cache JARs) into ${CRAFT_PART_INSTALL}/jar/, causing
jdeps to fail on unresolvable named modules. Fix: keep only the fat JAR,
discovered at build time from build/libs/ (bootJar's output directory).
---
- [x] I've followed the [contribution guidelines](https://github.com/canonical/rockcraft/blob/main/CONTRIBUTING.md).
- [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/).
- [x] I've successfully run `make lint && make test`.
- [x] I've added or updated any relevant documentation.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged in #1116 (d79fbd75): Spring Boot now keeps only bootJar's final fat JAR, preventing Gradle cache JARs from breaking jdeps-based tests. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in canonical/rockcraft#1116 (d79fbd75): Spring Boot installs now retain only the final fat JAR, preventing Gradle cache JARs from breaking jdeps-based tests. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged to resolve Spring Boot Gradle test failures caused by internal JARs triggering jdeps errors. The update restricts the install directory to only the final fat JAR, ensuring successful CI validation. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix for Spring Boot Gradle builds where jdeps failed due to internal Gradle JARs hardlinked into the install directory. The change restricts packaging to only the final fat JAR, resolving module resolution errors. |
Update history
No update history recorded yet.
Related issues
No related issues found above the similarity threshold.