← Back to issue list

feat: java plugin should set JAVA_HOME

View original Github issue

Metadata

Project
craft-parts
Number
#895
Type
pull request
State
merged
Author
vpa1977
Labels
—
Created
Updated
Closed

Current evaluation

Merged #895 as a3b9cdab, making Java plugins set JAVA_HOME to the latest valid JDK; it resolves #892 and adds OpenJDK dependencies and tests.

Resolution: closed resolved

Reason: PR #895 was merged as commit a3b9cdab. The implementation validates available JDKs, selects the latest one, sets JAVA_HOME, and resolves issue #892.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This MR resolves https://github.com/canonical/craft-parts/issues/892 Changes: - define JAVA_HOME in get_build_environment(). Select latest JDK and validate it by compiling a java program. - add several openjdks as dependencies - update tests - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged #895 as a3b9cdab, making Java plugins set JAVA_HOME to the latest valid JDK; it resolves #892 and adds OpenJDK dependencies and tests.
stealth/space-bunny-alpha — closed resolved Merged #895 as commit a3b9cdab, making the Java plugin set JAVA_HOME to a validated latest JDK and adding OpenJDK dependencies and tests.
qwen/qwen3.6-35b-a3b — — Merged after review and CI approval. The Java plugin now sets JAVA_HOME in get_build_environment() by selecting and validating the latest JDK, adds OpenJDK dependencies, and updates tests, resolving issue #892.
qwen3.6-35b-a3b-mtp-q6 — — Merged changes configure the Java plugin to set JAVA_HOME, select the latest JDK, validate compilation, and add OpenJDK dependencies. Resolves issue #892 after maintainer review and minor linter fixes.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/craft-parts#892 (confidence 100%)

    PR #895 explicitly states that it resolves the request to support setting JAVA_HOME in the Java plugin.

Related issues

Issue Project State Summary Similarity
#892 Support setting JAVA_HOME in java plugin craft-parts closed Java plugin JAVA_HOME support was merged in PR #895 via commit a3b9cdab, selecting the highest validated JDK found in the build environment.
74%