/** * Add a single Maven dependency into the Archive. * The following dependency formats are supported: * * groupId:artifactId * groupId:artifactId:version * groupId:artifactId:packaging:version * groupId:artifactId:packaging:version:classifier * * @param gav String coordinates of the Maven dependency * @return Archive instance * @throws Exception * @see ArtifactLookup#artifact(String) */ @SuppressWarnings("unchecked") default T addDependency(String gav) throws Exception { addAsLibrary(ArtifactLookup.get().artifact(gav)); return (T) this; } }
/** * Add a single Maven dependency into the Archive. * The following dependency formats are supported: * * groupId:artifactId * groupId:artifactId:version * groupId:artifactId:packaging:version * groupId:artifactId:packaging:version:classifier * * @param gav String coordinates of the Maven dependency * @return Archive instance * @throws Exception * @see ArtifactLookup#artifact(String) */ @SuppressWarnings("unchecked") default T addDependency(String gav) throws Exception { addAsLibrary(ArtifactLookup.get().artifact(gav)); return (T) this; } }
ArtifactLookup artifactLookup = ArtifactLookup.get(); for (String gav : appEnv.getDependencies()) { depContainer.addAsLibrary(artifactLookup.artifact(gav)); final File pathFile = new File(path); if (path.endsWith(".jar")) { depContainer.addAsLibrary(pathFile); } else if (pathFile.isDirectory()) { depContainer
ArtifactLookup artifactLookup = ArtifactLookup.get(); for (String gav : appEnv.getDependencies()) { depContainer.addAsLibrary(artifactLookup.artifact(gav)); final File pathFile = new File(path); if (path.endsWith(".jar")) { depContainer.addAsLibrary(pathFile); } else if (pathFile.isDirectory()) { depContainer
ArtifactLookup artifactLookup = ArtifactLookup.get(); for (String gav : appEnv.getDependencies()) { depContainer.addAsLibrary(artifactLookup.artifact(gav)); final File pathFile = new File(path); if (path.endsWith(".jar")) { depContainer.addAsLibrary(pathFile); } else if (pathFile.isDirectory()) { depContainer