[maven-resolver] branch MRESOLVER-64 created (now b2eeafe)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[maven-resolver] branch MRESOLVER-64 created (now b2eeafe)

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

hboutemy pushed a change to branch MRESOLVER-64
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git.


      at b2eeafe  [MRESOLVER-64] restore setLoggerFactory(...) APIs

This branch includes the following new commits:

     new b2eeafe  [MRESOLVER-64] restore setLoggerFactory(...) APIs

The 1 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.


Reply | Threaded
Open this post in threaded view
|

[maven-resolver] 01/01: [MRESOLVER-64] restore setLoggerFactory(...) APIs

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

hboutemy pushed a commit to branch MRESOLVER-64
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git

commit b2eeafe26d5901abbdf341d2d8c6d68f08c5a99b
Author: Hervé Boutemy <[hidden email]>
AuthorDate: Wed Dec 5 00:50:56 2018 +0100

    [MRESOLVER-64] restore setLoggerFactory(...) APIs
   
    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
---
 .../eclipse/aether/internal/impl/DefaultArtifactResolver.java  | 10 ++++++++++
 .../eclipse/aether/internal/impl/DefaultRepositorySystem.java  | 10 ++++++++++
 2 files changed, 20 insertions(+)

diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultArtifactResolver.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultArtifactResolver.java
index c4745c5..bed0930 100644
--- a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultArtifactResolver.java
+++ b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultArtifactResolver.java
@@ -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" );
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultRepositorySystem.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultRepositorySystem.java
index 6dfd286..e5636e8 100644
--- a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultRepositorySystem.java
+++ b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultRepositorySystem.java
@@ -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" );