This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


    from 2cea5e295a Bump ch.qos.logback:logback-classic from 1.5.19 to 1.5.20 
(#11295)
     new 9fd42d6c85 Remove some trailing dot after `{@return}` Javadoc tag. A 
dot is already automatically added by Javadoc, so these trailing dots were 
causing dots to appear twice in the generated Javadoc.
     new f92a8ee553 Refactor `DefaultSourceRoot` as a record. It removes about 
a third of the code and forces us to be more consistent since all constructions 
must pass by the canonical constructor. This refactored class should have the 
same behavior as the previous class (no new feature).
     new e69bff99d8 When the value of `<targetPath>` is a relative directory, 
the specification in `maven.mdo` requires that we resolve against 
`${project.build.outputDirectory}`, which is not `baseDir`. Also modify the 
specification for resolving against `${project.build.testOutputDirectory}` if 
the scope is test and `${project.build.directory}` is the scope is neither main 
or test.
     new c6b008b507 Add a `Project.getOutputDirectory(ProjectScope)` for 
avoiding the need to repeat the same code in the plugins. The 
`SourceRoot.targetPath(Project)` method become simpler, delegating most of the 
work to the new method.

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../main/java/org/apache/maven/api/Project.java    |  30 ++
 .../main/java/org/apache/maven/api/SourceRoot.java |  45 ++-
 .../java/org/apache/maven/api/SourceRootTest.java  |  89 ++++++
 api/maven-api-model/src/main/mdo/maven.mdo         |  12 +-
 .../maven/project/DefaultProjectBuilder.java       |  12 +-
 .../org/apache/maven/impl/DefaultSourceRoot.java   | 355 ++++++++-------------
 .../apache/maven/impl/DefaultSourceRootTest.java   |  75 ++++-
 7 files changed, 372 insertions(+), 246 deletions(-)
 create mode 100644 
api/maven-api-core/src/test/java/org/apache/maven/api/SourceRootTest.java

Reply via email to