• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1apply plugin: 'com.github.dcendents.android-maven'
2
3project.ext.innerPom = { // used by mavenInstaller
4    project {
5        packaging 'aar'
6        version ddVersion
7        groupId ddGroup
8        artifactId ddArtifactId
9
10        name ddArtifactId
11        description ddDescription
12        url ddWebsite
13
14        licenses {
15            license {
16                name 'The Apache Software License, Version 2.0'
17                url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
18            }
19        }
20
21        developers {
22            developer {
23                name 'Kevin Jin'
24                organizationUrl 'https://github.com/ddkjin'
25            }
26        }
27
28        // http://central.sonatype.org/pages/requirements.html
29        scm {
30            connection "scm:git:${ddGit}"
31            developerConnection "scm:git:${ddGit}"
32            url ddWebsite
33        }
34
35        issueManagement {
36            url ddTracker
37        }
38    }
39}
40
41project.ext.pomXml = pom innerPom // used by mavenJava publication in artifactory
42
43install {
44    repositories.mavenInstaller {
45        // will not work with just pomXml
46        pom innerPom
47    }
48}
49