davsclaus opened a new pull request, #30564: URL: https://github.com/apache/camel/pull/30564
_Claude Code on behalf of Claus Ibsen_ [CAMEL-27351](https://issues.apache.org/jira/browse/CAMEL-27351): a new command, `camel dependency outdated`, and the Maven Dependencies screen of the TUI, now tell which dependencies are worth a look: * a newer release, of the same major.minor line (NEWER) or any (LATEST, marked `(major)`), * a version other than the one the Camel dependencies bring (`override`), * a JAR loaded twice, or in another version than declared (`conflict`), * a Camel JAR of another Camel version (`mixed`). The Camel JARs move together, so they get no newer versions of their own. Instead, one line tells where the Camel version stands, from the known releases of the catalog: ``` Camel 4.18.1 LTS, end of life 2027-02-16 · newer on this line: 4.18.5 · latest LTS: 4.22.2 · latest: 4.23.0 ``` ## How it works New package `org.apache.camel.dsl.jbang.core.common.outdated` in camel-jbang-core, shared by the command and the screen: | Class | What it does | |---|---| | `Versions` | Compares versions as Maven does. Picks the newer patch and the latest release with the same qualifier (`.Final`, `-jre`; no `-jdk5` builds). Skips snapshots, milestones and release candidates; a release candidate still gets its release. | | `CamelRelease` | LTS, end of life, the latest patch of the line, the latest LTS and the latest release, from `camelReleases()` of the catalog. | | `DependencyCheck` | Sets the status of each dependency. What Camel brings comes from resolving the Camel GAVs alone, so a version the project declares does not hide Camel's; camel-parent pins no third-party versions. Also looks up the available versions, 8 at a time, from the repositories of the Maven settings, and reads the versions loaded from a classpath. | | `DependencyRow` | One row, with `explain()` in words and `toJson()`. | ## The command `camel dependency outdated` checks the project files. It has these options: * `--integration`: the JARs a running integration downloaded, plus its Camel JARs. The JARs of the CLI itself count only when they clash with one of those. * `--transitive`, with VIA. * `--all`. * `--offline`: no lookup. * `--json`. * `--fail-on=any|patch|status|none`: exits 1 like `npm outdated`. On the CVE audit example of camel-jbang-examples, with `camel-zipfile:4.18.0` and `snakeyaml-engine:2.9` added, `--integration` finds: * the 4.18.0 camel-* JARs that camel-zipfile drags in next to the 4.24 ones, * snakeyaml 1.33 next to Camel's 2.7, * slf4j 2.0.17 next to 2.0.20. ## The screen The Maven Dependencies screen has: * the Camel line on top, * CAMEL, STATUS, NEWER, LATEST and CVES columns, * a line that explains the selected dependency. The parts that need no network run when the tab opens. `u` looks up the newer versions and runs the CVE Audit, which fills CVES. `v` opens the CVE Audit on the selected dependency. A new `outdated` scope keeps the dependencies worth a look. Shift+F8 asks the AI which dependencies to upgrade and whether that is safe (`DependencyAiPrompt`).  ## Tests and docs Tests: * `DependencyCheckTest`, `DependencyOutdatedTest` (core), * `MavenDependenciesTabTest`, `DependencyAiPromptTest` (TUI), * the golden CLI help. Tried live: the command in project and integration mode, and a TUI of this branch against the running example, including `u`, `t` and Shift+F8. Docs: * camel-jbang-projects.adoc: "Checking for outdated dependencies", * camel-jbang-tui-observe.adoc: "Maven Dependencies", * the tab help, * the generated command page. Note: this does not touch `common.cve`, so it does not conflict with the CVE module move in #30555 (CAMEL-27343). The CVES column reads the CVE Audit tab's results through `CveAuditTab.cveCounts()`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
