Skip to content

Commit

Permalink
[build] add maven install for android artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
shwenzhang committed Sep 26, 2016
1 parent 24db161 commit a57c0a1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath "com.github.dcendents:android-maven-gradle-plugin:1.3"
}
}

Expand Down
37 changes: 37 additions & 0 deletions gradle/android-artifacts.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,41 @@
apply plugin: 'maven-publish'
apply plugin: 'com.github.dcendents.android-maven'

version = version
group = GROUP

install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom.project {
name POM_NAME
artifactId POM_ARTIFACT_ID
packaging POM_PACKAGING
description POM_DESCRIPTION
url POM_URL

scm {
url POM_SCM_URL
}

licenses {
license {
name POM_LICENCE_NAME
url POM_LICENCE_URL
Distribution POM_LICENCE_DIST
}
}

developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
}
}
}
}
}


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

0 comments on commit a57c0a1

Please sign in to comment.