Skip to content

Gradle: publish snapshots to repository.apache.org - #1349

Merged
pjfanning merged 2 commits into
apache:trunkfrom
pjfanning:gradle-nexus-snapshots
Sep 23, 2026
Merged

pjfanning merged 2 commits into
apache:trunkfrom
pjfanning:gradle-nexus-snapshots

Conversation

@pjfanning

@pjfanning pjfanning commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Lets the Gradle build publish snapshots to the ASF Nexus snapshots repository. CI is not set up in this PR.

  • Adds an apacheSnapshots repository (https://repository.apache.org/content/repositories/snapshots/), only for -SNAPSHOT versions and only for the modules released in 5.5.1: poi, poi-ooxml, poi-ooxml-full, poi-ooxml-lite, poi-scratchpad, poi-excelant, poi-examples.
  • Credentials come from the Gradle properties apacheSnapshotsUsername / apacheSnapshotsPassword (or ORG_GRADLE_PROJECT_apacheSnapshotsUsername / ORG_GRADLE_PROJECT_apacheSnapshotsPassword env vars). Without them, publish fails fast.
  • Signing is no longer required for snapshot versions.
  • POM license/organization metadata now matches the 5.5.1 POMs in Maven Central: https license/organization URLs and https in the license header comment. The developers and issueManagement sections are kept.

The existing POM rewrite that makes poi-ooxml depend on poi-ooxml-lite instead of poi-ooxml-full is unchanged. Gradle module metadata stays disabled, and test-only dependencies are not in the POMs.

Usage:

./gradlew publish -PapacheSnapshotsUsername=... -PapacheSnapshotsPassword=...

Tested with ./gradlew publish --dry-run (publish tasks exist only for the 7 modules) and by comparing the generated POMs with the 5.5.1 ones. Nothing has been uploaded to Nexus yet.

🤖 Generated with Claude Code

pjfanning and others added 2 commits September 23, 2026 22:15
Add an 'apacheSnapshots' Maven repository for the modules released to
Maven Central (poi, poi-ooxml, poi-ooxml-full, poi-ooxml-lite,
poi-scratchpad, poi-excelant, poi-examples). It is only added for
-SNAPSHOT versions; credentials come from the apacheSnapshotsUsername /
apacheSnapshotsPassword Gradle properties.

Signing is no longer required for snapshot versions.

Align the POM metadata with the 5.5.1 release POMs: https license and
organization URLs, https in the license header comment, and no
developers or issueManagement sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pjfanning
pjfanning merged commit 179daa4 into apache:trunk Sep 23, 2026
4 checks passed
@pjfanning
pjfanning deleted the gradle-nexus-snapshots branch September 23, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant