Automated Gradle project deployment to Sonatype OSSRH, closes #44

This commit is contained in:
Emux
2016-07-03 21:51:53 +03:00
parent 507f9eca1e
commit 7e24b9cf4a
9 changed files with 59 additions and 1 deletions

View File

@@ -46,3 +46,10 @@ android.libraryVariants.all { variant ->
task.from variant.javaCompile.destinationDir
artifacts.add('archives', task);
}
// Automated Gradle project deployment to Sonatype OSSRH
if (isReleaseVersion && project.hasProperty("SONATYPE_USERNAME")) {
afterEvaluate {
project.apply from: "${rootProject.projectDir}/deploy.gradle"
}
}