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

   ## Summary
   
   - Enhanced `camel dependency update` command to accept multiple target files 
(pom.xml or Java source files with `//DEPS`)
   - Added `--scan-routes` flag to sync dependencies from route definitions:
     - Manages only `org.apache.camel` dependencies
     - Preserves non-Camel dependencies (e.g., guava, netty)
     - Removes unused Camel dependencies no longer needed by routes
     - Idempotent on re-execution (no duplicates)
   - Route definition files (YAML, XML) passed as arguments are automatically 
classified and used as source files for the export pipeline
   - In scan-routes mode, existing Camel `//DEPS` in Java target files are 
stripped before running the export pipeline, so only actual route-based 
dependencies are resolved
   
   ## Test plan
   
   - [x] Existing `DependencyUpdateTest` (Maven pom.xml with quarkus, 
spring-boot, main runtimes) passes
   - [x] New `DependencyUpdateJBangTest`:
     - [x] Multi-file JBang `//DEPS` update
     - [x] `--scan-routes` adds new deps from routes (Maven, all runtimes)
     - [x] `--scan-routes` removes unused Camel deps from pom.xml
     - [x] `--scan-routes` preserves non-Camel `//DEPS` in JBang files
     - [x] `--scan-routes` is idempotent on re-execution


-- 
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