← Back to issue list

plugins: add ant plugin

View original Github issue

Metadata

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

Current evaluation

Merged PR #332 (commit 646578d1), adding the Ant plugin to build Java projects and install a bin/java symlink plus generated JAR files.

Resolution: closed resolved

Reason: PR #332 was approved and merged as commit 646578d1. The implementation provides Ant-based Java builds and installs the resulting JARs and Java runtime symlink.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The plugin requires the ``ant`` tool installed on the system. This can be achieved by adding the appropriate declarations to ``build-packages`` or ``build-snaps``, or by having it installed or built in a different part. In this case, the name of the part supplying ``ant`` must be "ant-deps". Additionally, Java projects need a dev kit (jdk) to build and a runtime environment (jre) to run. There are multiple choices here, but frequently adding ``default-jdk-headless`` to ``build-packages`` and ``default-jre-headless`` to ``stage-packages`` is enough. Once built, the plugin will create the following structure in the part's install dir (which will later be staged/primed/packaged): - A ``bin/java`` symlink pointing to the actual ``java`` binary provided by the jre; - A ``jar/`` directory containing the .jar files generated by the build. - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? ----- CRAFT-1464

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #332 (commit 646578d1), adding the Ant plugin to build Java projects and install a bin/java symlink plus generated JAR files.
stealth/space-bunny-alpha — closed resolved Ant plugin added and merged in canonical/craft-parts#332 (commit 646578d1), building Java projects with Ant and staging a Java symlink and JAR outputs.
qwen/qwen3.6-35b-a3b — — Merged the ant plugin. It builds Java projects using the ant tool, requiring jdk and jre dependencies. Outputs a bin/java symlink and jar directory. Review approved, assertion notation fixed, and remaining improvements tracked in follow-up ticket CRAFT-1526.
qwen3.6-35b-a3b-mtp-q6 — — Added an Ant plugin for Java projects. Merged after addressing review feedback. Requires ant, JDK, and JRE, producing a bin/java symlink and jar directory. Remaining improvements tracked in CRAFT-1526.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#339 plugins: add base class for java-related plugins craft-parts merged Merged #339 as b628bddf, adding a shared JavaPlugin base class; Ant now derives from it, preparing common support for the Maven plugin.
78%
#331 WIP: antplugin craft-parts closed WIP Ant plugin PR #331 was closed unmerged; it was superseded by follow-up PR #332 ("plugins: add ant plugin"), merged as commit 646578d1 and later refined by #339.
72%
#722 docs: document the Ant plugin craft-parts merged Merged PR #722 via commit 38182dc3, adding Ant plugin documentation across four files (+93/-2) after approval by two reviewers.
71%