René's URL Explorer Experiment


Title: chore(release): add multi-platform release JAR build pipeline by andygrove · Pull Request #87 · apache/datafusion-java · GitHub

Open Graph Title: chore(release): add multi-platform release JAR build pipeline by andygrove · Pull Request #87 · apache/datafusion-java

X Title: chore(release): add multi-platform release JAR build pipeline by andygrove · Pull Request #87 · apache/datafusion-java

Description: Which issue does this PR close? Continues #33 (the binary release JAR build pipeline deferred from #77 — "Cross-build CI matrix, Sonatype/Maven Central wiring, and release docs are deferred to follow-up PRs."). Not a full close — GitHub Actions matrix and Maven Central distributionManagement wiring are still open follow-ups. Rationale for this change PR #77 added the runtime side of the fat-JAR design: NativeLibraryLoader reads org/apache/datafusion///lib. from the JAR and extracts it on demand. But nothing in the repo actually produces a JAR with more than one platform's lib inside — core/pom.xml's host-activated profile bundles only the host's lib, and the existing release scripts (dev/release/create-tarball.sh etc.) only do source tarballs. A consumer pulling the artifact from Maven Central today gets a JAR that works on the platform it was built on and nowhere else. This PR adds the build side: a release-manager script that drives two Docker containers for the Linux arches and the host's own Rust toolchain for the macOS arches, assembles all four .so/.dylib files into a single JAR, and installs it into a temporary local Maven repo. A second script (not yet exercised in CI) signs and uploads that repo to Apache Nexus staging. The structure mirrors datafusion-comet's release tooling (dev/release/comet-rm/Dockerfile, build-release-comet.sh, publish-to-maven.sh), simplified for this project: single module pair (no Spark/Scala matrix) and macOS libs built natively on the RM's macOS host (no OSXCross / Xcode SDK plumbing). What changes are included in this PR? New release tooling under dev/release/: datafusion-java-rm/Dockerfile — Ubuntu 20.04 + Rust + protoc (arch-aware download). Single-stage, no OSXCross. Built twice via --platform=linux/{amd64,arm64}. datafusion-java-rm/build-native-libs.sh — runs inside the container: clones the repo, cargo build --release. Container platform dictates target arch. build-release.sh — host orchestrator. Detects host arch via uname -m. Cleans + rebuilds both Docker images, runs each, docker-cp's the linux libs into core/target/classes/org/apache/datafusion/linux/{amd64,aarch64}/, then on the host runs cargo build --release (host arch native) and cargo build --release --target -apple-darwin (cross to the other arch) and copies both .dylib files into core/target/classes/org/apache/datafusion/darwin/{x86_64,aarch64}/. Finishes with ./mvnw -Ddatafusion.native.profile=release -DskipTests install into a temp local Maven repo whose path is printed at the end. Pre-cleans leftover named containers; traps SIGINT/SIGTERM/EXIT. publish-to-maven.sh — Nexus staging upload: creates staging repo via REST, signs every artifact with GPG, uploads with curl --fail-with-body, closes the staging repo. Not exercised in the dry run. README.md — new "Binary Release: Multi-Platform JAR" section after the existing source-tarball flow. Two follow-on fixes uncovered by the dry run: pom.xml — add .github/** and dev/release/rat_exclude_files.txt to the apache-rat-plugin excludes. The plugin runs at the verify phase, which mvn install triggers but make test does not. These files were already exempt in dev/release/rat_exclude_files.txt (used by the source-tarball flow's check-rat-report.py); this brings the pom-level RAT check into alignment. dev/release/build-release.sh — pass -Ddatafusion.native.profile=release to ./mvnw install. core/pom.xml defaults this property to debug, so without the override the antrun copy-native-lib step looks for the host's lib under native/target/debug/ and fails the precondition check. Are these changes tested? End-to-end dry run on macOS aarch64 produced datafusion-java-0.1.0-SNAPSHOT.jar (175 MB) containing exactly the four expected resource entries: org/apache/datafusion/linux/amd64/libdatafusion_jni.so ELF 64-bit LSB x86-64 org/apache/datafusion/linux/aarch64/libdatafusion_jni.so ELF 64-bit LSB ARM aarch64 org/apache/datafusion/darwin/x86_64/libdatafusion_jni.dylib Mach-O 64-bit x86_64 org/apache/datafusion/darwin/aarch64/libdatafusion_jni.dylib Mach-O 64-bit arm64 ./mvnw test is green on the branch (308 tests run, 0 failures, 13 skipped) after the standard `cargo build` (debug) precondition from CLAUDE.md. `publish-to-maven.sh` is not exercised in this PR. Validating it requires real Apache Nexus credentials and a real GPG-signed release candidate, both of which are out of scope for the build-pipeline dry run. Are there any user-facing changes? No code or API changes. Release-manager-facing tooling only.

Open Graph Description: Which issue does this PR close? Continues #33 (the binary release JAR build pipeline deferred from #77 — "Cross-build CI matrix, Sonatype/Maven Central wiring, and release docs are deferred t...

X Description: Which issue does this PR close? Continues #33 (the binary release JAR build pipeline deferred from #77 — "Cross-build CI matrix, Sonatype/Maven Central wiring, and release docs are deferr...

Opengraph URL: https://github.com/apache/datafusion-java/pull/87

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:31165c05-f3a7-0a48-fc8e-efb28374dea9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD314:D7239:24A716:33EE4A:6B046A48
html-safe-nonce7bfae2455dd168928ca51b1b1048fdf896630d3035db909efb714444acaaea24
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzE0OkQ3MjM5OjI0QTcxNjozM0VFNEE6NkIwNDZBNDgiLCJ2aXNpdG9yX2lkIjoiNzE1NDAzODUxNjA1NjYxNTQ5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac56df8008e37f73eabfb44dbc933ce845e689c44b34401199b6f56ca4c45c4d48
hovercard-subject-tagpull_request:3743033718
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/apache/datafusion-java/pull/87/files
twitter:imagehttps://avatars.githubusercontent.com/u/934084?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/934084?s=400&v=4
og:image:altWhich issue does this PR close? Continues #33 (the binary release JAR build pipeline deferred from #77 — "Cross-build CI matrix, Sonatype/Maven Central wiring, and release docs are deferred t...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/apache/datafusion-java git https://github.com/apache/datafusion-java.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id1237105117
octolytics-dimension-repository_nwoapache/datafusion-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1237105117
octolytics-dimension-repository_network_root_nwoapache/datafusion-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseca4d07a7cef4e4b75f821dc25e7300d80c1450a9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/datafusion-java/pull/87/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F87%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F87%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=apache%2Fdatafusion-java
Reloadhttps://github.com/apache/datafusion-java/pull/87/files
Reloadhttps://github.com/apache/datafusion-java/pull/87/files
Reloadhttps://github.com/apache/datafusion-java/pull/87/files
apachehttps://github.com/apache
datafusion-javahttps://github.com/apache/datafusion-java
Codehttps://github.com/apache/datafusion-java
Issues10 (10)https://github.com/apache/datafusion-java/issues
Pull requests10 (10)https://github.com/apache/datafusion-java/pulls
Discussionshttps://github.com/apache/datafusion-java/discussions
Actionshttps://github.com/apache/datafusion-java/actions
Security and qualityhttps://github.com/apache/datafusion-java/security
Insightshttps://github.com/apache/datafusion-java/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fapache%2Fdatafusion-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fapache%2Fdatafusion-java%2Fissues%2Fnew%2Fchoose
andygrovehttps://github.com/andygrove
apache:mainhttps://github.com/apache/datafusion-java/tree/main
andygrove:multi-platform-releasehttps://github.com/andygrove/datafusion-java/tree/multi-platform-release
Conversation 1 https://github.com/apache/datafusion-java/pull/87
Commits 8 https://github.com/apache/datafusion-java/pull/87/commits
Checks 1 https://github.com/apache/datafusion-java/pull/87/checks
Files changed https://github.com/apache/datafusion-java/pull/87/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/87/files
chore(release): add multi-platform release JAR build pipeline https://github.com/apache/datafusion-java/pull/87/files#top
Show all changes 8 commits https://github.com/apache/datafusion-java/pull/87/files
7549cc8 chore(release): add Dockerfile for linux native lib builds andygrove May 25, 2026 https://github.com/apache/datafusion-java/pull/87/commits/7549cc840185a933eccebbeb89dbe834dc178cb6
28242f5 chore(release): add in-container build script for native libs andygrove May 25, 2026 https://github.com/apache/datafusion-java/pull/87/commits/28242f5d597136c0f43def944665f8202f46a77e
1e57d30 chore(release): add multi-platform JAR build orchestrator andygrove May 25, 2026 https://github.com/apache/datafusion-java/pull/87/commits/1e57d30473b67270a309cda174c0fdfbeb68bd98
940fc31 chore(release): add publish-to-maven script for binary artifacts andygrove May 25, 2026 https://github.com/apache/datafusion-java/pull/87/commits/940fc31d10ef9399cc7e3670584bd6ac6a01a0f8
b8b4736 docs(release): document multi-platform JAR build and publish flow andygrove May 25, 2026 https://github.com/apache/datafusion-java/pull/87/commits/b8b47360c6a63fa80a22d5bb84c077ab1ed0424a
d0f8270 fix(build): exempt .github/** and rat_exclude_files.txt from RAT check andygrove May 25, 2026 https://github.com/apache/datafusion-java/pull/87/commits/d0f8270f92798d8291944e8aefde883803a8f871
aa44d10 fix(release): build with the release native profile in build-release.sh andygrove May 25, 2026 https://github.com/apache/datafusion-java/pull/87/commits/aa44d10a805263d91a17705a22b044826c2cfdc9
3da6f7b chore(release): tighten release scripts after review andygrove May 25, 2026 https://github.com/apache/datafusion-java/pull/87/commits/3da6f7b00aad7d9ff361458ad77d633698f489ca
Clear filters https://github.com/apache/datafusion-java/pull/87/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/87/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/87/files
README.md https://github.com/apache/datafusion-java/pull/87/files#diff-7b90af0d72004d8b923b4ed55f67a5f3e40e6a08ec9637f382d6506dd309848d
build-release.sh https://github.com/apache/datafusion-java/pull/87/files#diff-31025871151acacac99908ea181ca37159e6a77f58c626d1146328984f434bd3
Dockerfile https://github.com/apache/datafusion-java/pull/87/files#diff-07db8d5772d90b7cefab916e85c815dba27d8b9b57c53eda7397dddc94af70c6
build-native-libs.sh https://github.com/apache/datafusion-java/pull/87/files#diff-46a4c0de0c05dcca7525e5ba2322e988765927f63e642df773543fac5d5bb9d1
publish-to-maven.sh https://github.com/apache/datafusion-java/pull/87/files#diff-0b77367c030be8b53041056686020c9654fcac5c71bc2b861640c39bdbdef076
pom.xml https://github.com/apache/datafusion-java/pull/87/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
dev/release/README.mdhttps://github.com/apache/datafusion-java/pull/87/files#diff-7b90af0d72004d8b923b4ed55f67a5f3e40e6a08ec9637f382d6506dd309848d
View file https://github.com/andygrove/datafusion-java/blob/3da6f7b00aad7d9ff361458ad77d633698f489ca/dev/release/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/87/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/87/files#diff-7b90af0d72004d8b923b4ed55f67a5f3e40e6a08ec9637f382d6506dd309848d
dev/release/build-release.shhttps://github.com/apache/datafusion-java/pull/87/files#diff-31025871151acacac99908ea181ca37159e6a77f58c626d1146328984f434bd3
View file https://github.com/andygrove/datafusion-java/blob/3da6f7b00aad7d9ff361458ad77d633698f489ca/dev/release/build-release.sh
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/87/{{ revealButtonHref }}
dev/release/datafusion-java-rm/Dockerfilehttps://github.com/apache/datafusion-java/pull/87/files#diff-07db8d5772d90b7cefab916e85c815dba27d8b9b57c53eda7397dddc94af70c6
View file https://github.com/andygrove/datafusion-java/blob/3da6f7b00aad7d9ff361458ad77d633698f489ca/dev/release/datafusion-java-rm/Dockerfile
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/87/{{ revealButtonHref }}
dev/release/datafusion-java-rm/build-native-libs.shhttps://github.com/apache/datafusion-java/pull/87/files#diff-46a4c0de0c05dcca7525e5ba2322e988765927f63e642df773543fac5d5bb9d1
View file https://github.com/andygrove/datafusion-java/blob/3da6f7b00aad7d9ff361458ad77d633698f489ca/dev/release/datafusion-java-rm/build-native-libs.sh
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/87/{{ revealButtonHref }}
Please reload this pagehttps://github.com/apache/datafusion-java/pull/87/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/87/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.