desruisseaux opened a new pull request, #2061: URL: https://github.com/apache/maven/pull/2061
Notable changes: * Add a `SourceRoot` interface for the properties declared in the POM's `<Source>` element. * In the POM, deprecate the `sourceDirectory`, `testSourceDirectory`, `scriptSourceDirectory`, `resources`, `testResources` elements and the `Resource` structure. They are replaced by `<source>` elements. * In the `MavenProject` class, replace the `compileSourceRoots`, `testCompileSourceRoots` and `scriptSourceRoots` fields by redirections to the new `sources` field with paths wrapped in `SourceRoot` objects. The resource fields are not completely replaced, information are duplicated. * The getters and setters methods for above-cited fields are deprecated. * This commit contains other opportunistic deprecations on methods which were receiving or returning instances of types that were already deprecated. In the POM file, the above-cited deprecated properties are ignored if a corresponding `<source>` element exists. For example, if there is a source with `<scope>main</scope>` and `<lang>java</lang>`, then `<sourceDirectory>` is ignored. This rule exits because Maven sets default values to those fields, which can interfere with user's setting. **Note:** the `SourceRoot` API uses method names without the `get` prefix in anticipation for possible use of records in the future. -- 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: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org