diff options
Diffstat (limited to 'artifactory.gradle')
-rw-r--r-- | artifactory.gradle | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/artifactory.gradle b/artifactory.gradle index b8b2f6c..c6c9964 100644 --- a/artifactory.gradle +++ b/artifactory.gradle @@ -7,13 +7,28 @@ publishing { groupId ddGroup artifactId ddArtifactId version ddVersion + artifact "${project.buildDir}/outputs/aar/${project.name}-release.aar" + artifact sourcesJar + artifact javadocJar + + pom.withXml { xmlProvider -> + // Create string from project.ext.pomXml + def pomString = new StringWriter() + pomXml.writeTo(pomString) + pomString = pomString.toString() + + // Replace default xml with pomXml + def xmlStringBuilder = xmlProvider.asString() + xmlStringBuilder.setLength(0) + xmlStringBuilder.append(pomString) + } } } } artifactory { contextUrl = 'http://oss.jfrog.org/artifactory' - publish { // gradle clean artifactoryPublish + publish { repository { repoKey = 'oss-snapshot-local' username = bintrayUser |