Skip to content

Commit

Permalink
Publish source and javadoc jars to MavenLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
tsjensen committed May 2, 2015
1 parent 5a7c074 commit 6456208
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ publish {
dependsOn assemble
}

def Node addPom(final Node pRoot, final String pArtifactId)
def Node addPom(final Node pRoot)
{
pRoot.remove(pRoot.get('artifactId'));
pRoot.appendNode('artifactId', pArtifactId);
pRoot.appendNode('name', project.ext.longName);
pRoot.appendNode('description', project.description);
pRoot.appendNode('url', project.ext.website);
Expand Down Expand Up @@ -68,7 +66,7 @@ def Node addPom(final Node pRoot, final String pArtifactId)
model {
tasks.generatePomFileForCheckstyleAddonsPublication {
pom.withXml {
addPom(asNode(), project.name);
addPom(asNode());
}
}
}
Expand All @@ -77,6 +75,8 @@ publishing {
publications {
checkstyleAddons(MavenPublication) {
artifact jar
artifact jarSources
artifact jarJavadoc
}
}
}

0 comments on commit 6456208

Please sign in to comment.