Search in sources :

Example 1 with MavenPomRelocation

use of org.gradle.api.publish.maven.MavenPomRelocation in project gradle by gradle.

the class MavenPomFileGenerator method convertRelocation.

private Relocation convertRelocation(MavenPomRelocation source) {
    Relocation target = new Relocation();
    target.setGroupId(source.getGroupId().getOrNull());
    target.setArtifactId(source.getArtifactId().getOrNull());
    target.setVersion(source.getVersion().getOrNull());
    target.setMessage(source.getMessage().getOrNull());
    return target;
}
Also used : MavenPomRelocation(org.gradle.api.publish.maven.MavenPomRelocation) Relocation(org.apache.maven.model.Relocation)

Aggregations

Relocation (org.apache.maven.model.Relocation)1 MavenPomRelocation (org.gradle.api.publish.maven.MavenPomRelocation)1