Repository navigation
feat: jpm outdated and jpm update for pinned versions - #26
Conversation
- jpm outdated lists Spring Boot, dependency versions and java.versions that have newer stable releases, with npm's current/wanted/latest columns, and exits with 1 when something is behind. - jpm update moves them to the newest release with the same major version, or with --latest to the latest, like pnpm update, then syncs the POM and resolves dependencies. A flavor such as Guava's -jre is kept. - Versions Spring Boot manages follow Spring Boot. Hand-maintained POM projects get a pointer to versions:display-dependency-updates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. Walkthrough
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the versions in a row |
What changes
Two commands for the versions
package.jsonpins, modeled on npm and pnpm:java.springBoot(asorg.springframework.boot:spring-boot-starter-parent), dependency versions injava.dependenciesand in modules, andjava.versions. Versions Spring Boot manages follow Spring Boot;jpm update <managed coordinate>says to update Spring Boot instead.^/~ranges, sojpm updatestays within the current major version by default, likepnpm update, and--latestcrosses it, likepnpm update --latest. It never downgrades.maven-metadata.xmllookupjpm addalready uses (JPM_MAVEN_REPOSITORY). RCs and milestones are skipped, and a flavor such as Guava's-jreis kept, since its metadata also lists-androidreleases, which can be the release marker.package.json, regenerates the POMs and resolves dependencies likejpm install.java.pom: "manual") are refused with a pointer to./mvnw versions:display-dependency-updates.outdatedand a bareupdatecontinue; an explicitjpm update <coordinate>fails.latestReleaseis split intostableReleasesplus a smallcompareVersions, and the newsrc/outdated.tscollects the pins and computes wanted/latest.Docs: both command references (with the same "not released yet" note as #25), the
JPM_MAVEN_REPOSITORYrow in both configuration docs, both READMEs, and the CHANGELOG.Checks run
npm run check: 109 tests, 104 pass, 5 skipped (Windows only), 0 fail. The new CLI test uses a fake fetch: wanted/latest per major, the Guava flavor, Spring Boot, a 404, the error cases, multi-module locations and the manual refusal.cd site && npm run build && npm run check:links: pass; the command index picks up both commands.outdatedlisted all three and exited 1.updatemoved them to 4.2.0, 32.1.3-jre and 3.22.0 and noted the newer Guava major.doctorthen reported the POMs matching, andjpm build -- -DskipTestspassed.Not covered: Windows, and repositories that need authentication (the lookup uses only
JPM_MAVEN_REPOSITORY, not Maven's settings).🤖 Generated with Claude Code
Summary by CodeRabbit
jpm outdatedto identify pinned Java dependencies with newer stable releases, with workspace filtering and JSON output.jpm update(also available asupandupgrade) to update dependencies to the newest release in the same major version by default, or the latest release with--latest. Updates sync the project manifest and resolve dependencies.