Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 771fdc2

Browse files
committed
Add pom task and prepareArtifacts task
Change-Id: I7aa333dddb28d5cd81a035ba1cf7ae72b07c84b5
1 parent d03e4fe commit 771fdc2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

easypermissions/bintray.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ bintray {
8989
user = hasProperty('BINTRAY_USER') ? getProperty('BINTRAY_USER') : System.getenv('BINTRAY_USER')
9090
key = hasProperty('BINTRAY_KEY') ? getProperty('BINTRAY_KEY') : System.getenv('BINTRAY_KEY')
9191

92+
filesSpec {
93+
from "$buildDir/publications/library/pom-default.xml"
94+
into "pub/devrel/$mavenArtifactId/$mavenVersion/"
95+
rename { String fileName ->
96+
"${mavenArtifactId}-${mavenVersion}.pom"
97+
}
98+
}
99+
92100
configurations = [ 'archives' ]
93101

94102
pkg {
@@ -104,3 +112,10 @@ bintray {
104112
}
105113
}
106114
}
115+
116+
afterEvaluate { project ->
117+
def pomTask = "generatePomFileForLibraryPublication"
118+
119+
// Convenience task to prepare everything we need for releases
120+
task prepareArtifacts(dependsOn: [javadocJar, sourcesJar, assembleRelease, pomTask]) {}
121+
}

0 commit comments

Comments
 (0)