slachiewicz opened a new pull request, #14062:
URL: https://github.com/apache/maven/pull/14062
Brings the plugin-facing `org.apache.maven.api.logging.Logger` API
(`Logger`, `LogEventBuilder`, `LogLevel`) from #13832 into Maven 4.0 and
removes `org.apache.maven.api.plugin.Log` before 4.0 GA, so 4.0 does not ship
an API that is already slated for deprecation in 4.2.
### Commits
1. **Guillaume Nodet**: `Logger`, `LogEventBuilder`, `LogLevel`, and
`maven-api-log` module skeleton extracted from #13832 (preserving original
authorship).
2. **Adaptation for `maven-4.0.x`**:
- Wire `maven-api-log` into `api/pom.xml`, `pom.xml`, and
`maven-api-core` (`@since 4.0.0`, without `LoggerManager`/`LogSink`/`LogEvent`
or bootstrap/JUL/System.Logger changes targeted for 4.2 in #13832).
- Remove `org.apache.maven.api.plugin.Log` and replace `DefaultLog` with
`DefaultLogger` backed by SLF4J (`org.slf4j.Logger`).
- Update `MojoExecutionScopeModule`, `DefaultMavenPluginManager`,
`DefaultBuildPluginManager`, `MojoExecutionScoped`, `MojoExtension`, and
`its/core-it-suite` fixtures to use `org.apache.maven.api.logging.Logger`.
### Verification
- `mvn test -pl :maven-api-log,:maven-api-core,:maven-core,:maven-testing
-T1C`: passed (Checkstyle, RAT, and unit tests).
Ref: #13832
--
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]