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

   ## Summary
   
   Alternative to #14061 that deprecates the same API surface on `maven-4.0.x` 
**without removing anything** — fully binary-compatible with all previous 4.0.0 
release candidates.
   
   ## Commits
   
   ### 1. Introduce Logger/LogEventBuilder/LogLevel API (from #13832)
   
   Introduces `org.apache.maven.api.logging.{Logger,LogEventBuilder,LogLevel}` 
into `maven-api-log`, adapted for Maven 4.0:
   - `@since 4.0.0` on all three types
   - No `LoggerManager`, `LogSink`, `LogEvent` (those remain targeted at 4.2.0 
via #13832)
   - No `Logger.of()` static factory (depends on `LoggerManager`)
   - `DefaultLogger`: SLF4J-backed implementation replacing `DefaultLog`
   
   ### 2. Adapt Logger API for Maven 4.0 (from plugin-logger-4.0 branch)
   
   - Wires `maven-api-log` into the build
   - Replaces `DefaultLog` with `DefaultLogger` throughout the Maven core (DI 
scope, plugin manager, test fixtures)
   
   ### 3. Deprecate API methods in 4.0.0 as forward-compatible signal before GA
   
   Adds `@Deprecated(since = "4.0.0", forRemoval = true)` to:
   
   **Core API interfaces** (JavaBeans getX() → future noun accessor pattern):
   - `Artifact`: `getGroupId`, `getArtifactId`, `getVersion`, `getBaseVersion`, 
`getClassifier`, `getExtension`
   - `ArtifactCoordinates`: `getGroupId`, `getArtifactId`, `getClassifier`, 
`getVersionConstraint`, `getExtension`
   - `Dependency`: `getType`, `getScope`
   - `DependencyCoordinates`: `getType`, `getScope`, `getOptional`, 
`getExclusions`
   - `DownloadedArtifact`: `getPath`
   - `Event`: `getSession`, `getType`, `getProject`, `getMojoExecution`, 
`getException`
   - `Exclusion`: `getGroupId`, `getArtifactId`
   - `LocalRepository`: `getPath`
   - `Node`: `getArtifact`, `getDependency`, `getChildren`, 
`getRemoteRepositories`, `getRepository`
   - `Project`: 18 getX() methods
   - `RemoteRepository`: `getUrl`, `getProtocol`
   - `Repository`: `getId`, `getType`
   - `Session`: `getDegreeOfConcurrency`
   - `VersionConstraint`: `getVersionRange`, `getRecommendedVersion`
   - `VersionRange`: `getUpperBoundary`, `getLowerBoundary`
   
   **SPI**:
   - `ModelProcessor.read(XmlReaderRequest)` → deprecated in favour of 
`read(Source, Map)`
   
   **Plugin API**:
   - `org.apache.maven.api.plugin.Log` → deprecated in favour of 
`org.apache.maven.api.logging.Logger`
   - `DefaultLog` restored as a compatibility bridge delegating to 
`DefaultLogger`
   
   ## Compatibility
   
   **No method is removed.** All deprecated methods retain their existing 
signatures. Plugins compiled against any previous 4.0.0 RC continue to work at 
runtime without recompilation.
   
   This is explicitly **not** #14061: that PR removes methods and changes 
visibility, breaking binary compatibility with existing RCs.


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