public class DependencyManager extends Object implements ResolvedDependencies
JBOSS_MODULES_ARTIFACT_ID, JBOSS_MODULES_GROUP_ID, WILDFLY_SWARM_BOOTSTRAP_ARTIFACT_ID, WILDFLY_SWARM_GROUP_ID| Constructor and Description |
|---|
DependencyManager(ArtifactResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalModule(Path module) |
ResolvedDependencies |
analyzeDependencies(boolean autodetect,
DeclaredDependencies declaredDependencies) |
protected byte[] |
checksum(InputStream in) |
ArtifactSpec |
findArtifact(String groupId,
String artifactId,
String version,
String packaging,
String classifier) |
ArtifactSpec |
findArtifact(String groupId,
String artifactId,
String version,
String packaging,
String classifier,
boolean includeTestScope) |
ArtifactSpec |
findJBossModulesJar() |
ArtifactSpec |
findWildFlySwarmBootstrapJar() |
protected FractionManifest |
fractionManifest(File file) |
Set<ArtifactSpec> |
getDependencies() |
Set<ArtifactSpec> |
getModuleDependencies() |
protected WildFlySwarmManifest |
getWildFlySwarmManifest() |
protected boolean |
isConfigApiModulesJar(File file) |
static boolean |
isFractionJar(File file) |
boolean |
isRemovable(org.jboss.shrinkwrap.api.Node node) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindModuleXmls, isExplodedBootstrappublic DependencyManager(ArtifactResolver resolver)
public void addAdditionalModule(Path module)
public Set<ArtifactSpec> getDependencies()
getDependencies in interface ResolvedDependenciespublic ArtifactSpec findWildFlySwarmBootstrapJar()
findWildFlySwarmBootstrapJar in interface ResolvedDependenciespublic ArtifactSpec findJBossModulesJar()
findJBossModulesJar in interface ResolvedDependenciespublic ArtifactSpec findArtifact(String groupId, String artifactId, String version, String packaging, String classifier)
findArtifact in interface ResolvedDependenciespublic ArtifactSpec findArtifact(String groupId, String artifactId, String version, String packaging, String classifier, boolean includeTestScope)
findArtifact in interface ResolvedDependenciespublic ResolvedDependencies analyzeDependencies(boolean autodetect, DeclaredDependencies declaredDependencies) throws Exception
Exceptionpublic boolean isRemovable(org.jboss.shrinkwrap.api.Node node)
isRemovable in interface ResolvedDependenciesprotected byte[] checksum(InputStream in) throws IOException, NoSuchAlgorithmException, DigestException
protected boolean isConfigApiModulesJar(File file)
public static boolean isFractionJar(File file)
protected FractionManifest fractionManifest(File file)
protected WildFlySwarmManifest getWildFlySwarmManifest()
public Set<ArtifactSpec> getModuleDependencies()
getModuleDependencies in interface ResolvedDependenciesCopyright © 2017 JBoss by Red Hat. All rights reserved.