davsclaus opened a new pull request, #30804:
URL: https://github.com/apache/camel/pull/30804

   ## Description
   
   [CAMEL-21693](https://issues.apache.org/jira/browse/CAMEL-21693): the Camel 
CLI was created during Camel 3 and still had code for Camel 3 versions. This 
makes it Camel 4 only.
   
   - `Run.runCustomCamelVersion` (the run of a vendor build such as 
`4.10.3.redhat-00001`): `camel-cli-connector` is always added (it was only 
added from 3.19.0), and `--repos` is no longer removed for 3.18.0 or older.
   - `camel run --camel-version` refuses a Camel 3 version, with exit code `2` 
(usage), whether the version comes from the option, from `camel version set` or 
from `application.properties`. Before, the run went on with the Camel 3 CLI, 
which does not know the options of the current CLI.
   - `camel version set` refuses a Camel 3 version before it looks the version 
up in the Maven repositories.
   - The new `VersionHelper.isCamel4OrNewer` reads the major version only, so 
4.0 milestones (`4.0.0-M1`) and vendor builds are accepted.
   - Docs: the version management examples in `camel-jbang-projects.adoc` used 
Camel 3 versions, and the 4.24 upgrade guide has an entry for the change.
   
   The other version checks in camel-jbang are for Camel 4 versions, or for 
Camel Quarkus / Spring Boot 3.x, and stay.
   
   ## Testing
   
   - `VersionHelperTest` and `VersionSetTest` have new tests; these pass, 
together with `RunTest` and `RunCamelVersionCommandTest`.
   - End to end, with the branch jars in the classpath of the CLI: `camel run 
hello.camel.yaml --camel-version=3.22.0` and `camel version set 3.22.0` print 
the error and exit with `2`.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 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]

Reply via email to