use of org.sonatype.aether.artifact.ArtifactType in project sonatype-aether by sonatype.
the class CachingArtifactTypeRegistry method get.
public ArtifactType get(String typeId) {
ArtifactType type = types.get(typeId);
if (type == null) {
type = delegate.get(typeId);
types.put(typeId, type);
}
return type;
}
use of org.sonatype.aether.artifact.ArtifactType in project gradle by gradle.
the class AbstractMavenPublishAction method createTypedArtifact.
private Artifact createTypedArtifact(String type, String classifier) {
String extension = type;
ArtifactType stereotype = session.getArtifactTypeRegistry().get(type);
if (stereotype != null) {
extension = stereotype.getExtension();
if (classifier == null) {
classifier = stereotype.getClassifier();
}
}
return new DefaultArtifact(pomArtifact.getGroupId(), pomArtifact.getArtifactId(), classifier, extension, pomArtifact.getVersion());
}
Aggregations