| 1 |
Description: remove the need for unavailable takari classes |
| 2 |
The repository of takari classes for filemanager has been removed, so I delete |
| 3 |
all calls to them... This only amounts to give up concurrent downloading of |
| 4 |
dependencies. |
| 5 |
Author: Pierre Gruet <[email protected]> |
| 6 |
Forwarded: not-needed |
| 7 |
Last-Update: 2021-04-29 |
| 8 |
|
| 9 |
--- a/src/main/java/capsule/DependencyManager.java |
| 10 |
+++ b/src/main/java/capsule/DependencyManager.java |
| 11 |
@@ -195,9 +195,9 @@ |
| 12 |
locator.addService(org.eclipse.aether.spi.connector.transport.TransporterFactory.class, org.eclipse.aether.transport.http.HttpTransporterFactory.class); |
| 13 |
locator.addService(org.eclipse.aether.spi.connector.transport.TransporterFactory.class, org.eclipse.aether.transport.file.FileTransporterFactory.class); |
| 14 |
|
| 15 |
|
| 16 |
+ /* // Takari (support concurrent downloads) |
| 17 |
locator.setService(org.eclipse.aether.impl.SyncContextFactory.class, LockingSyncContextFactory.class); |
| 18 |
|
| 19 |
+ locator.setService(org.eclipse.aether.spi.io.FileProcessor.class, LockingFileProcessor.class); */ |
| 20 |
|
| 21 |
return locator.getService(RepositorySystem.class); |
| 22 |
} |
| 23 |
@@ -557,7 +557,7 @@ |
| 24 |
//<editor-fold defaultstate="collapsed" desc="DI Workarounds"> |
| 25 |
/////////// DI Workarounds /////////////////////////////////// |
| 26 |
// necessary if we want to forgo Guice/Sisu injection and use DefaultServiceLocator instead |
| 27 |
|
| 28 |
+ /*private static final io.takari.filemanager.FileManager takariFileManager = new io.takari.filemanager.internal.DefaultFileManager(); |
| 29 |
|
| 30 |
public static class LockingFileProcessor extends io.takari.aether.concurrency.LockingFileProcessor { |
| 31 |
public LockingFileProcessor() { |
| 32 |
@@ -569,6 +569,6 @@ |
| 33 |
public LockingSyncContextFactory() { |
| 34 |
super(takariFileManager); |
| 35 |
} |
| 36 |
|
| 37 |
+ }*/ |
| 38 |
//</editor-fold> |
| 39 |
} |