aboutsummaryrefslogtreecommitdiff
path: root/maven.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'maven.gradle')
-rw-r--r--maven.gradle55
1 files changed, 30 insertions, 25 deletions
diff --git a/maven.gradle b/maven.gradle
index e325de0..ae1439e 100644
--- a/maven.gradle
+++ b/maven.gradle
@@ -1,34 +1,39 @@
apply plugin: 'com.github.dcendents.android-maven'
-install {
- repositories.mavenInstaller {
- pom {
- project {
- packaging 'aar'
- version = ddVersion
- groupId = ddGroup
- artifactId = ddArtifactId
+project.ext.innerPom = { // used by mavenInstaller
+ project {
+ packaging 'aar'
+ version = ddVersion
+ groupId = ddGroup
+ artifactId = ddArtifactId
- description = ddDescription
- url ddWebsite
+ description = ddDescription
+ url ddWebsite
- licenses {
- license {
- name 'The Apache Software License, Version 2.0'
- url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
- }
- }
+ licenses {
+ license {
+ name 'The Apache Software License, Version 2.0'
+ url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
+ }
+ }
- scm {
- connection ddGit
- developerConnection ddGit
- url ddWebsite
- }
+ scm {
+ connection ddGit
+ developerConnection ddGit
+ url ddWebsite
+ }
- issueManagement {
- url ddTracker
- }
- }
+ issueManagement {
+ url ddTracker
}
}
}
+
+project.ext.pomXml = pom innerPom // used by mavenJava publication in artifactory
+
+install {
+ repositories.mavenInstaller {
+ // will not work with just pomXml
+ pom innerPom
+ }
+}