This is a part of my CI system.
A plugin for publish your android variants apk and proguard mapping files to your maven repository.
In your build.gradle
file
buildscript {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
classpath 'com.github.dodocat:gradle-android-maven-publish:0.1.0'
}
}
apply plugin: 'org.quanqi.gradle.android-maven-publish'
// caonfigration default values below
androidMavenPublish {
String url = "http://localhost:8081/nexus/service/local/artifact/maven/content"
String user = 'admin'
String password = 'admin123'
String repository = 'ci' // the repository id in you maven repo
String groupId = project.group
String artifactId = project.name
}
View tasks
./gradlew task
run task
./gradle publishToMaven