Skip to content

Commit a57c0a1

Browse files
committed
[build] add maven install for android artifacts
1 parent 24db161 commit a57c0a1

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ buildscript {
77
dependencies {
88
classpath 'com.android.tools.build:gradle:2.1.0'
99
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
10+
classpath "com.github.dcendents:android-maven-gradle-plugin:1.3"
1011
}
1112
}
1213

gradle/android-artifacts.gradle

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,41 @@
11
apply plugin: 'maven-publish'
2+
apply plugin: 'com.github.dcendents.android-maven'
3+
4+
version = version
5+
group = GROUP
6+
7+
install {
8+
repositories.mavenInstaller {
9+
// This generates POM.xml with proper parameters
10+
pom.project {
11+
name POM_NAME
12+
artifactId POM_ARTIFACT_ID
13+
packaging POM_PACKAGING
14+
description POM_DESCRIPTION
15+
url POM_URL
16+
17+
scm {
18+
url POM_SCM_URL
19+
}
20+
21+
licenses {
22+
license {
23+
name POM_LICENCE_NAME
24+
url POM_LICENCE_URL
25+
Distribution POM_LICENCE_DIST
26+
}
27+
}
28+
29+
developers {
30+
developer {
31+
id POM_DEVELOPER_ID
32+
name POM_DEVELOPER_NAME
33+
}
34+
}
35+
}
36+
}
37+
}
38+
239

340
task androidJavadocs(type: Javadoc) {
441
source = android.sourceSets.main.java.srcDirs

0 commit comments

Comments
 (0)