Skip to content

Commit

Permalink
add pom
Browse files Browse the repository at this point in the history
  • Loading branch information
cfstras committed Jan 31, 2019
1 parent cbf636f commit 62a6e1e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ configure(javaProjects) {
}

jar {
into("META-INF/maven/$project.group/$project.name") {
from { generatePomFileForMavenJavaPublication }
rename ".*", "pom.xml"
}
manifest {
version = project.version.replace("-",".");
}
Expand Down Expand Up @@ -285,3 +289,13 @@ task (tarFull, type: Tar) {
dependsOn(tar)
archiveName = project.name + "-" + project.version + "_full.tgz"
}

apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}

0 comments on commit 62a6e1e

Please sign in to comment.