Search in sources :

Example 1 with MutableMavenProjectIdentity

use of org.gradle.api.publish.maven.internal.publisher.MutableMavenProjectIdentity in project gradle by gradle.

the class NativeBasePlugin method fillInCoordinates.

private void fillInCoordinates(Project project, MavenPublicationInternal publication, PublishableComponent publishableComponent) {
    final ModuleVersionIdentifier coordinates = publishableComponent.getCoordinates();
    MutableMavenProjectIdentity identity = publication.getMavenProjectIdentity();
    identity.getGroupId().set(project.provider(() -> coordinates.getGroup()));
    identity.getArtifactId().set(project.provider(() -> coordinates.getName()));
    identity.getVersion().set(project.provider(() -> coordinates.getVersion()));
}
Also used : ModuleVersionIdentifier(org.gradle.api.artifacts.ModuleVersionIdentifier) MutableMavenProjectIdentity(org.gradle.api.publish.maven.internal.publisher.MutableMavenProjectIdentity)

Aggregations

ModuleVersionIdentifier (org.gradle.api.artifacts.ModuleVersionIdentifier)1 MutableMavenProjectIdentity (org.gradle.api.publish.maven.internal.publisher.MutableMavenProjectIdentity)1