[MRESOLVER-64] restore setLoggerFactory(...) APIs
authorHervé Boutemy <hboutemy@apache.org>
Tue, 4 Dec 2018 23:50:56 +0000 (00:50 +0100)
committerHervé Boutemy <hboutemy@apache.org>
Tue, 4 Dec 2018 23:50:56 +0000 (00:50 +0100)
done only for DefaultArtifactResolver and DefaultRepositorySystem since
they broke IntelliJ IDEA integration

but there are more classes that should be changed to restore fully this
API in the full code

maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultArtifactResolver.java
maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultRepositorySystem.java

index c4745c5..bed0930 100644 (file)
@@ -138,6 +138,16 @@ public class DefaultArtifactResolver
         setOfflineController( locator.getService( OfflineController.class ) );
     }
 
+    /**
+     * @deprecated not used any more since MRESOLVER-36 move to slf4j, added back in MRESOLVER-64 for compatibility
+     */
+    @Deprecated
+    public DefaultArtifactResolver setLoggerFactory( org.eclipse.aether.spi.log.LoggerFactory loggerFactory )
+    {
+        // this.logger = NullLoggerFactory.getSafeLogger( loggerFactory, getClass() );
+        return this;
+    }
+
     public DefaultArtifactResolver setFileProcessor( FileProcessor fileProcessor )
     {
         this.fileProcessor = requireNonNull( fileProcessor, "file processor cannot be null" );
index 6dfd286..e5636e8 100644 (file)
@@ -152,6 +152,16 @@ public class DefaultRepositorySystem
         setSyncContextFactory( locator.getService( SyncContextFactory.class ) );
     }
 
+    /**
+     * @deprecated not used any more since MRESOLVER-36 move to slf4j, added back in MRESOLVER-64 for compatibility
+     */
+    @Deprecated
+    public DefaultRepositorySystem setLoggerFactory( org.eclipse.aether.spi.log.LoggerFactory loggerFactory )
+    {
+        // this.logger = NullLoggerFactory.getSafeLogger( loggerFactory, getClass() );
+        return this;
+    }
+
     public DefaultRepositorySystem setVersionResolver( VersionResolver versionResolver )
     {
         this.versionResolver = requireNonNull( versionResolver, "version resolver cannot be null" );