This is an automated email from the ASF dual-hosted git repository.

jason810496 pushed a commit to branch v3-3-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-3-test by this push:
     new a84a76d9a11 [v3-3-test] Keep the Gradle wrapper jar out of the source 
release (#69444) (#73108)
a84a76d9a11 is described below

commit a84a76d9a1184241ab2716f10ace630b4d8a2ca7
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Sep 14 14:11:38 2026 +0630

    [v3-3-test] Keep the Gradle wrapper jar out of the source release (#69444) 
(#73108)
    
    ASF policy does not permit compiled binaries in a source release and the
    Gradle wrapper is not among the exempted build tools (LEGAL-570), so main
    stopped shipping java-sdk/gradle/wrapper/gradle-wrapper.jar in #69444.
    
    Only half of that change reached this branch. The breeze side already
    restores gradlew and gradlew.bat after `git archive` drops them, but the
    java-sdk/.gitattributes side never followed, so nothing is actually dropped
    and the 43 KB jar is still in the 3.3.2rc1 source tarball.
    
    Carrying the rest of the file over also starts shipping 
java-sdk/.editorconfig,
    which the root .gitattributes strips today even though ktlint reads it at
    build time and the build task requires that lint to pass.
    
    gradle-wrapper.properties stays in the tarball on purpose: it carries the
    pinned Gradle version and distribution checksum a verifier needs to
    regenerate the wrapper.
    
    Generated-by: Claude Opus 5
    Claude-Session: https://claude.ai/code/session_01DCUVuZ8CCeER1QLhVEKAaZ
---
 java-sdk/.gitattributes | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/java-sdk/.gitattributes b/java-sdk/.gitattributes
index a87d264c425..04a9c526a5e 100644
--- a/java-sdk/.gitattributes
+++ b/java-sdk/.gitattributes
@@ -9,3 +9,16 @@
 
 # Binary files should be left untouched
 *.jar           binary
+
+# Keep the Gradle wrapper jar and scripts out of source releases.
+# See: https://issues.apache.org/jira/browse/LEGAL-570
+# This intentionally does not exclude the entire gradle/wrapper directory so
+# gradle-wrapper.properties is kept. This file carries the pinned Gradle 
version
+# and distribution checksum for a verifier to use when regenerating the 
wrapper.
+/gradlew export-ignore
+/gradlew.bat export-ignore
+/gradle/wrapper/gradle-wrapper.jar export-ignore
+
+# ktlint reads .editorconfig for its formatting rules at build time, and the
+# build task requires the lint to pass, so the source release must ship it.
+/.editorconfig -export-ignore

Reply via email to