feat(gradle_plugin): add self-contained attribute support
Metadata
Current evaluation
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.
Suggested action: —
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 |
|---|---|---|---|---|
| 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. Adds plugin-constrained build-attributes to craft-parts, requiring explicit plugin support. Currently implements the 'self-contained' attribute for maven and maven-use plugins. Approved and passed all CI checks. |