This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new ca0aa5e4c ci: don't upload JARs meant for testing only (#4611)
ca0aa5e4c is described below
commit ca0aa5e4c49d5ea2853792a8045e3310d92c3606
Author: David Li <[email protected]>
AuthorDate: Tue Jul 28 17:33:08 2026 -0700
ci: don't upload JARs meant for testing only (#4611)
Stop uploading artifacts which contain only tests.
Generated-by: GPT 5.6 Sol <[email protected]>
---
ci/scripts/java_build.sh | 17 +++++++++++++----
ci/scripts/java_jar_upload.sh | 5 +++++
dev/release/04-java-upload.sh | 5 +++++
java/driver/flight-sql-validation/pom.xml | 4 ++++
4 files changed, 27 insertions(+), 4 deletions(-)
diff --git a/ci/scripts/java_build.sh b/ci/scripts/java_build.sh
index 3e7babdc8..761b92bc6 100755
--- a/ci/scripts/java_build.sh
+++ b/ci/scripts/java_build.sh
@@ -56,10 +56,19 @@ main() {
echo "=== Copying artifacts to dist dir ==="
mkdir -p "${dist_dir}"
- find "${maven_repo}" \
- "(" -name "*.jar" -o -name "*.pom" ")" \
- -exec echo {} ";" \
- -exec cp {} "${dist_dir}" ";"
+ while IFS= read -r pom; do
+ if grep -Eq
'<maven\.deploy\.skip>[[:space:]]*true[[:space:]]*</maven\.deploy\.skip>'
"${pom}"; then
+ echo "Skipping deployment artifacts for ${pom}"
+ continue
+ fi
+
+ find "$(dirname "${pom}")" \
+ -maxdepth 1 \
+ -type f \
+ "(" -name "*.jar" -o -name "*.pom" ")" \
+ -exec echo {} ";" \
+ -exec cp {} "${dist_dir}" ";"
+ done < <(find "${maven_repo}" -name "*.pom" -type f)
fi
}
diff --git a/ci/scripts/java_jar_upload.sh b/ci/scripts/java_jar_upload.sh
index 88ba744ca..3aff09aff 100755
--- a/ci/scripts/java_jar_upload.sh
+++ b/ci/scripts/java_jar_upload.sh
@@ -71,6 +71,11 @@ SETTINGS
local -r is_root='^arrow-adbc-java-root-.*'
for pom in "$@"; do
+ if grep -Eq
'<maven\.deploy\.skip>[[:space:]]*true[[:space:]]*</maven\.deploy\.skip>'
"${pom}"; then
+ echo "Skipping deployment of ${pom}"
+ continue
+ fi
+
echo "Deploying ${pom}"
local mvnArgs=""
diff --git a/dev/release/04-java-upload.sh b/dev/release/04-java-upload.sh
index 6f05326eb..849f32da9 100755
--- a/dev/release/04-java-upload.sh
+++ b/dev/release/04-java-upload.sh
@@ -65,6 +65,11 @@ main() {
pushd "${ARROW_ARTIFACTS_DIR}"
for pom in *.pom; do
+ if grep -Eq
'<maven\.deploy\.skip>[[:space:]]*true[[:space:]]*</maven\.deploy\.skip>'
"${pom}"; then
+ echo "Skipping deployment of ${pom}"
+ continue
+ fi
+
base=$(basename "${pom}" .pom)
files=()
types=()
diff --git a/java/driver/flight-sql-validation/pom.xml
b/java/driver/flight-sql-validation/pom.xml
index 4656625df..eac989a60 100644
--- a/java/driver/flight-sql-validation/pom.xml
+++ b/java/driver/flight-sql-validation/pom.xml
@@ -31,6 +31,10 @@
<name>Arrow ADBC Driver Flight SQL Validation</name>
<description>Tests validating the Flight SQL driver.</description>
+ <properties>
+ <maven.deploy.skip>true</maven.deploy.skip>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.apache.arrow.adbc</groupId>