aether dependency resolver to use Idea-bundled slf4j-api

This commit is contained in:
Eugene Zhuravlev
2017-04-06 14:13:39 +02:00
parent 08f7f89aca
commit 6f7aee64cb
4 changed files with 5 additions and 1 deletions

View File

@@ -29,5 +29,6 @@
<orderEntry type="library" exported="" name="http-client" level="project" />
<orderEntry type="library" exported="" name="commons-codec" level="project" />
<orderEntry type="library" exported="" name="commons-logging" level="project" />
<orderEntry type="library" exported="" name="Slf4j" level="project" />
</component>
</module>

View File

@@ -110,6 +110,7 @@ class CommunityStandaloneJpsBuilder {
include(name: "commons-logging-*.jar")
include(name: "httpclient-*.jar")
include(name: "httpcore-*.jar")
include(name: "slf4j-api-*.jar")
}
ant.fileset(dir: "$home/jps/lib") {
include(name: "optimizedFileManager.jar")

View File

@@ -80,13 +80,15 @@ public class ClasspathBootstrap {
cp.add(getResourcePath(ArtifactRepositoryManager.class)); // aether-dependency-resolver
final String aetherPath = getResourcePath(Artifact.class); // aether-1.1.0-all.jar
cp.add(aetherPath);
cp.add(FileUtil.toSystemIndependentName(new File(new File(aetherPath).getParentFile(), "maven-aether-provider-3.3.9-all.jar").getAbsolutePath())); // aether-1.1.0-all.jar
cp.add(FileUtil.toSystemIndependentName(new File(new File(aetherPath).getParentFile(), "maven-aether-provider-3.3.9-all.jar").getAbsolutePath()));
cp.add(getResourcePath(HttpClient.class)); // httpclient
cp.add(getResourcePath(HttpConnection.class)); // httpcore
//noinspection UnnecessaryFullyQualifiedName
cp.add(getResourcePath(org.apache.commons.codec.binary.Base64.class)); // commons-codec
//noinspection UnnecessaryFullyQualifiedName
cp.add(getResourcePath(org.apache.commons.logging.LogFactory.class)); // commons-logging
//noinspection UnnecessaryFullyQualifiedName
cp.add(getResourcePath(org.slf4j.Marker.class)); // slf4j
cp.addAll(getJavac8RefScannerClasspath());
//don't forget to update CommunityStandaloneJpsBuilder.layoutJps accordingly

Binary file not shown.