feat(gradle_plugin): add self-contained attribute support
Metadata
Current evaluation
Merged as commit ef17116e, adding Gradle self-contained support with offline local-Maven resolution, maven-use publishing, and builds without a Gradle wrapper.
Resolution: closed resolved
Reason: PR #1425 was approved and merged into the main branch as commit ef17116e. The change adds the self-contained build flow and generated Gradle init script.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This PR adds self-contained support for the Gradle plugin. An init script is generated to redirect dependecy resolution and publishing to local Maven repos. If a `publish` task is used, the artifact is published to `maven-use` in `export` so that subsequent parts can resolve them from `maven-use` in the backstage directory.
Changes:
- ignores existence of gradle wrapper if build is self-contained
---
- [x] Have you followed the guidelines for contributing?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `make lint && make test`?
- [x] Have you added an entry to the changelog (`docs/reference/changelog.rst`)?
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged as commit ef17116e, adding Gradle self-contained support with offline local-Maven resolution, maven-use publishing, and builds without a Gradle wrapper. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in #1425 (commit ef17116e), adding Gradle self-contained support with local Maven init scripts and support for builds without a Gradle wrapper. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged. Adds self-contained support to the Gradle plugin. Generates an init script to redirect dependency resolution and publishing to local Maven repositories and ignores the Gradle wrapper. Approved by two reviewers and passed CI. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged by maintainer smethnani. Adds self-contained support to the Gradle plugin via an init script redirecting dependency resolution and publishing to local Maven repos. Ignores the Gradle wrapper in self-contained builds. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1148 feat: Plugin-constrained build-attributes | craft-parts | merged | Merged PR #1148 in commit 9f4e255d, introducing plugin-gated build attributes and self-contained support for the maven and maven-use plugins. | |
| #1145 feat: 'self-contained' builds for Maven plugins | craft-parts | merged | Merged PR #1145 (commit 25d7598e) adds a 'self-contained' build-attribute for maven/maven-use plugins, always rewriting Maven source versions from backstage and /usr/share/maven-repo artifacts; backstage discovery is now default. |