/** * Returns this module as a Dependency with the given scope * * @param scope the DependencyScope to use * @return a non-<code>null</code> instance */ public Dependency asDependency(final DependencyScope scope) { return new Dependency(gav, DependencyType.valueOfTypeCode(packaging), scope); }
/** * Returns the type of the dependency represented by the given XML element * * @param dependencyElement the element from which to parse the type * (required) * @return a non-<code>null</code> type * @since 1.2.0 */ public static DependencyType getType(final Element dependencyElement) { // Find the type code, if any final String type = getTypeCode(dependencyElement); // Resolve this to a DependencyType return valueOfTypeCode(type); }
DependencyType.valueOfTypeCode("test-jar")); detectCircularDependency(module, dependencyPom); addDependency(module.getModuleName(), dependency);
projectOperations.addDependency(module.getModuleName(), new Dependency(managedEntityModule.getGroupId(), managedEntityModule.getArtifactId(), "${project.version}", DependencyType.valueOfTypeCode("test-jar"), DependencyScope.TEST), true, true);
projectOperations.addDependency(module.getModuleName(), new Dependency(managedEntityModule.getGroupId(), managedEntityModule.getArtifactId(), "${project.version}", DependencyType.valueOfTypeCode("test-jar"), DependencyScope.TEST), true, true);
projectOperations.addDependency(module.getModuleName(), new Dependency(managedEntityModule.getGroupId(), managedEntityModule.getArtifactId(), "${project.version}", DependencyType.valueOfTypeCode("test-jar"), DependencyScope.TEST), true, true);
projectOperations.addDependency(module.getModuleName(), new Dependency(managedEntityModule.getGroupId(), managedEntityModule.getArtifactId(), "${project.version}", DependencyType.valueOfTypeCode("test-jar"), DependencyScope.TEST), true, true);
projectOperations.addDependency(module.getModuleName(), new Dependency(managedEntityModule.getGroupId(), managedEntityModule.getArtifactId(), "${project.version}", DependencyType.valueOfTypeCode("test-jar"), DependencyScope.TEST), true, true);