Repository navigation
Maven Central pilot: licence, publishing from GitHub Actions, a dependency licence check - #4
Draft
adamjohnwright wants to merge 38 commits into
Draft
adamjohnwright wants to merge 38 commits into
adamjohnwright wants to merge 38 commits into
Conversation
…on bumps main's two POM changes since this branch (983fa2f, 6dc31e8, 1 Apr 2025) are the GoCD pipeline's automatic version bumps: versions never released (graph-core 3.0.0, 2.0.10 neither on EBI's Nexus), written by update_version.sh, which rewrote each POM whole and dropped its URL, organisation and developers, which Maven Central requires. This branch's POMs (Nov 2025) are kept; main's scripts come in unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dency licence check - LICENSE: Apache-2.0, as the POMs declare. - .github/workflows/maven.yml: the BOMs and reactome-parent built on every pull request, unsigned; on a v* tag signed and uploaded to the Central Portal, in the maven-central environment (a person approves; the token and key are its secrets), and published there by a person (autoPublish off). - reactome-parent 1.0.7 (1.0.6 is already on EBI's pst-release): license-maven-plugin in pluginManagement, the allowlist the ASF's categories A and B; javadoc made without doclint, which fails on old comments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
adamjohnwright
changed the base branch from
feature/sonatype-updates
to
main
November 25, 2026 19:31
The parent's defaults, as strict as the TypeScript side: javac with every lint (but path) and any warning failing the build; javadoc's doclint with every check, warnings failing; Spotless with palantir-java-format, checked at verify. Compiler plugin 3.16.0. Dependabot: weekly, minor and patch grouped, majors on their own, for Maven and the workflow's actions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The build needs JDK 17 (enforcer): Spotless needs it, and JDK 11's doclint and 21's serial lint judge the same code differently. java.version is a release number (release, not source/target, which javac warns about). Dependabot leaves the pinned reflections and logback, and the formatter, alone; its comment no longer claims this repository's CI checks an update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A POM on Central stays there, and whoever uses it inherits its repositories. EBI's Nexus is going away, so the four POMs this publishes (bom-parent, reactome-bom, reactome-pwp-bom, reactome-parent) no longer declare EBI's repositories or its distributionManagement. A build check fails if one does again. The BOMs change, so they get new versions: bom-parent 1.0.1, reactome-bom 1.0.7, reactome-pwp-bom 1.0.5, and reactome-parent imports those. Their old versions are on EBI, and one version keeps one content. The developers are the current maintainers. Built with an empty local repository: the parent installs from Central alone, and graph-core (#29) builds against it with its own repositories removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he tag checked
From the adversarial review of this pull request:
- reactome-bom managed popular-pathways and restfulapi with properties nobody defines
(popular.pathways for popular-pathways, restful.api for restful-api), so a child
saw the literal ${...}. Fixed; a build step makes a child of reactome-parent and
fails if any version in its effective POM is unresolved (seen failing with one
property misspelt again).
- The SCM addresses were not URLs (ssh://github.com:...) or used git://, which GitHub
no longer serves; one organisation address was http.
- maven.sonatype.central.version was never read (the plugin's version is written in
place); removed.
- checkout and setup-java pinned to their release commits, since the publish job
holds the signing key and the Central token.
- The publish job stops unless the tag is on main and is v<reactome-parent's version>.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A pilot, for review; not to merge yet. Reactome's Java libraries are to move to Maven Central, so builds stop depending on EBI's Nexus (Adam, 17 Nov 2026; EBI's Nexus has been returning 500s and timeouts all day on 23 Nov, failing CI here and in the exporters). This PR and reactome/graph-core#29 show the pattern on the root of the tree and on its most-used library, before it is repeated in other repos.
It builds on Joel's
feature/sonatype-updates, which already has most of what Central checks in a POM: licences, developers, SCM, source and javadoc jars, GPG signing, and a Sonatype profile. It adds:mainmerged in. The one conflict is resolved to this branch's POMs; see decision A.LICENSE: Apache-2.0, as the POMs already declare..github/workflows/maven.yml), so the Sonatype token and the signing key aren't on anyone's machine:reactome-parentare built, unsigned.v*tag: they're signed and uploaded to the Central Portal. The job runs in amaven-centralenvironment, so GitHub asks a person to approve it, and the secrets live there. The upload then waits in the portal until a person presses Publish, becauseautoPublishis off.reactome-parent'spluginManagement(license-maven-plugin2.10.0). A child turns it on by naming the plugin, as graph-core's PR does.doclint, because Central needs a javadoc jar and Java 17's doclint fails the build on old comments. graph-core's first errors are@author Name <email>.reactome-parent1.0.7, because 1.0.6 is already in EBI'spst-releaseand a released version must not be republished with other contents.What was checked:
reactome-parentinstall, and graph-core builds its jar, sources and javadoc jars and passes the licence check.Decisions for review
A. Which versions are real.
main's last changes to the POMs (983fa2f,6dc31e8, 1 Apr 2025) were made by "GoCD User". They're the GoCD pipeline's automatic bumps:update_version.shrewrote each POM whole and dropped its URL, organisation and developers, which Central requires.This branch's versions (Nov 2025) are kept. Is that right, and should
update_version.shandrelease_github.sh(frommain, unchanged here) be retired or fixed?B. The EBI repositories in
reactome-parent's<repositories>:pathwayExchangeand thereactome-basesnapshots.C. The licence allowlist (above). Should LGPL be allowed for libraries used as plain dependencies? The ASF says no; others say yes.
D.
doclintoff, or fix comments repo by repo?E.
tidy: this parent'stidycheck fails a child whose POM isn't in its order, so every child needsmvn tidy:pomonce when it moves to this parent. That reorders elements and adds blank lines, with no change in meaning; graph-core shows it.F.
reactome-pwp-parent(1.0.4) still importsreactome-bom1.0.5, which exists only on EBI, so it doesn't build without EBI. It's left out of the workflow. Its users, thepwp-*repos, are on the list to archive.G. Credentials:
org.reactomeCentral Portal account and the signing key?maven-centralenvironment withMAVEN_CENTRAL_USERNAME,MAVEN_CENTRAL_PASSWORD,MAVEN_GPG_PRIVATE_KEYandMAVEN_GPG_PASSPHRASE, in each repo or once for the organisation?H. Tags and versions. One tag publishes every POM here at its own version, which suits a first release. After that, a tag per artefact, or per BOM release, may be clearer.
Added 25 Nov: strict by default, one Java format, dependency updates
Decided with Joel and Adam: publish from
main(this PR now targets it), Apache-2.0 for every repository, keep the EBI repositories for now, and Java as strict as the TypeScript side.path, and any warning fails the build. It usesrelease, sojava.versionmust be a release number (11, 17), not 1.8.-missing).verify.mvn spotless:applyformats.What a library needs, to move to this parent:
Reviewed adversarially. Its findings are fixed here and in graph-core#29.
Release order: merge this, tag
v1.0.7, approve themaven-centraljob, then press Publish in the portal. The secrets and environment are in place.🤖 Generated with Claude Code