feat: JLink plugin
Metadata
Current evaluation
Closed without merging. Maintainers decided to integrate JLink functionality as an option within the base Java plugin instead of maintaining a separate plugin. The standalone feature was abandoned in favor of this unified approach.
Suggested action: —
No scores available.
Issue body
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
This PR adds jlink plugin that allows to generate Java runtime tailored for the Java application.
When ran without supplying jar file property it will search the staging area for any jars and generate an image for them.
If no jar files are found, then java.base image will be generated.
This PR includes unit and integration tests.
The plugin documentation is split into separate PR: https://github.com/canonical/rockcraft/pull/689
Sample ROCK using plugin: https://github.com/canonical/openjdk-rocks/tree/prototype/demos/java-runtime
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without merging. Maintainers decided to integrate JLink functionality as an option within the base Java plugin instead of maintaining a separate plugin. The standalone feature was abandoned in favor of this unified approach. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without merging. Maintainers opted to implement jlink functionality as an option within the base Java plugin rather than adding a separate plugin. The contribution was abandoned to align with the revised architectural approach. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without merging. The team decided to implement JLink functionality as an option within the base Java plugin instead of a separate plugin. The PR was abandoned to align with this revised architectural approach. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #891 Jlink support for Java plugin | craft-parts | closed | Closed. The Java plugin proposal was superseded by a dedicated jlink plugin. It will generate lean runtimes across multiple parts. Extensions and build attributes were rejected due to parameter and multi-part processing limits. | |
| #689 doc: jlink plugin description | rockcraft | closed | Closed by author after a CI port conflict. Documentation for the jlink plugin was abandoned as the functionality will be implemented in the base java plugin instead. |