You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/08/07 05:25:00 UTC

[jira] [Commented] (OFBIZ-13483) Populate gradle-wrapper.jar in linked git worktrees

    [ https://issues.apache.org/jira/browse/OFBIZ-13483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18102662#comment-18102662 ] 

ASF subversion and git services commented on OFBIZ-13483:
---------------------------------------------------------

Commit f36da00e2249319aebe334ac9b0e0f5a2e301955 in ofbiz-framework's branch refs/heads/trunk from Mridul Pathak
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=f36da00e22 ]

Improved: Populate gradle-wrapper.jar in linked git worktrees (OFBIZ-13483) (#1567)

Improved: Populate gradle-wrapper.jar in linked git worktrees (OFBIZ-13483)

gradle/wrapper/gradle-wrapper.jar is gitignored by design (see gradle/init-gradle-wrapper.sh), so `git worktree add` never populates it in a new linked worktree, and ./gradlew fails there with "Unable to access jarfile .../gradle-wrapper.jar" until someone manually runs init-gradle-wrapper.sh or copies the jar over by hand.

Adds setup-worktree-gradle-wrapper.sh at the repo root, run once per new linked worktree. It copies the jar from the main checkout when its Gradle version matches -- no download needed -- and falls back to init-gradle-wrapper.sh's existing download-and-verify path otherwise.

> Populate gradle-wrapper.jar in linked git worktrees
> ---------------------------------------------------
>
>                 Key: OFBIZ-13483
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13483
>             Project: OFBiz
>          Issue Type: Improvement
>    Affects Versions: Upcoming Branch
>            Reporter: Mridul Pathak
>            Assignee: Mridul Pathak
>            Priority: Minor
>
> {{gradle/wrapper/gradle-wrapper.jar}} is gitignored by design (see {{gradle/init-gradle-wrapper.sh}}), so {{git worktree add}} never populates it in a new linked worktree. {{./gradlew}} then fails there with {{Unable to access jarfile .../gradle-wrapper.jar}} until someone manually runs {{init-gradle-wrapper.sh}} or copies the jar over.
> Same class of issue as OFBIZ-13470 (git-hooks path) and OFBIZ-13471 ({{plugins/}} not populated).
> *Proposed fix:* {{setup-worktree-gradle-wrapper.sh}} at the repo root -- copies the jar from the main checkout when its Gradle version matches (no download), otherwise falls back to {{init-gradle-wrapper.sh}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)