in build-tools/src/main/java/co/elastic/otel/android/compilation/tools/publishing/subprojects/BaseApmPublisherPlugin.java [43:73]
private void configurePom(MavenPublication publication) {
publication.pom(mavenPom -> {
String repoUrl = getRepositoryUrl();
String organizationName = "Elastic Inc.";
String organizationUrl = getWebsiteUrl();
mavenPom.getName().set(getGroupId(project) + ":" + getArtifactId(project));
mavenPom.getDescription().set(project.getDescription());
mavenPom.getUrl().set(repoUrl);
mavenPom.organization(organization -> {
organization.getName().set(organizationName);
organization.getUrl().set(organizationUrl);
});
mavenPom.licenses(spec -> spec.license(license -> {
license.getName().set("The Apache Software License, Version 2.0");
license.getUrl().set("http://www.apache.org/licenses/LICENSE-2.0.txt");
}));
mavenPom.scm(scm -> {
String scmUrl = "scm:git:git@github.com:elastic/apm-agent-android.git";
scm.getConnection().set(scmUrl);
scm.getDeveloperConnection().set(scmUrl);
scm.getUrl().set(repoUrl);
scm.getTag().set("HEAD");
});
mavenPom.developers(spec -> spec.developer(developer -> {
developer.getName().set("Elastic");
developer.getUrl().set("https://discuss.elastic.co/c/apm");
developer.getOrganization().set(organizationName);
developer.getOrganizationUrl().set(organizationUrl);
}));
});
}