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

   ## Summary
   
   - Adds `SourceStrategy` (`@Priority(20)`) to migrate legacy source 
configuration to Maven 4.1.0+ `<source>` elements
   - Handles four migration phases:
     - **Compiler properties** (`maven.compiler.release`, 
`maven.compiler.source`/`target`) → `<source><targetVersion>`
     - **Compiler plugin configuration** (`<release>`, `<source>`/`<target>` in 
maven-compiler-plugin) → `<source><targetVersion>`
     - **Source/test directories** (custom 
`<sourceDirectory>`/`<testSourceDirectory>`) → `<source><directory>`
     - **Resources** (`<resources>`/`<testResources>`) → `<source>` with 
`<lang>resources</lang>`, preserving filtering, includes/excludes, and 
targetPath
   - Applies when `--model-version` is 4.1.0+ or `--all` is set
   - Default source/resource directories are cleaned up without creating 
redundant `<source>` entries
   - Empty containers (`<properties>`, `<plugins>`, `<configuration>`) are 
removed after migration
   
   ## Test plan
   
   - [x] 26 unit tests covering all phases: applicability (5), compiler 
properties (5), compiler plugin (4), source directories (3), resources (5), 
model version filtering (2), combined scenarios (2)
   - [ ] Manual test: create a 4.0.0 POM with compiler properties + resources, 
run `mvnup --model-version 4.1.0`, verify output
   
   🤖 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