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

Commit

Permalink
Add pom task and prepareArtifacts task
Browse files Browse the repository at this point in the history
Change-Id: I7aa333dddb28d5cd81a035ba1cf7ae72b07c84b5
  • Loading branch information
samtstern committed Dec 13, 2017
1 parent d03e4fe commit 771fdc2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions easypermissions/bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ bintray {
user = hasProperty('BINTRAY_USER') ? getProperty('BINTRAY_USER') : System.getenv('BINTRAY_USER')
key = hasProperty('BINTRAY_KEY') ? getProperty('BINTRAY_KEY') : System.getenv('BINTRAY_KEY')

filesSpec {
from "$buildDir/publications/library/pom-default.xml"
into "pub/devrel/$mavenArtifactId/$mavenVersion/"
rename { String fileName ->
"${mavenArtifactId}-${mavenVersion}.pom"
}
}

configurations = [ 'archives' ]

pkg {
Expand All @@ -104,3 +112,10 @@ bintray {
}
}
}

afterEvaluate { project ->
def pomTask = "generatePomFileForLibraryPublication"

// Convenience task to prepare everything we need for releases
task prepareArtifacts(dependsOn: [javadocJar, sourcesJar, assembleRelease, pomTask]) {}
}

0 comments on commit 771fdc2

Please sign in to comment.