Skip to content

dodocat/gradle-android-maven-publish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradle Android Maven Publish Plugin

This is a part of my CI system.

A plugin for publish your android variants apk and proguard mapping files to your maven repository.

USAGE

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

About

Upload android apk.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages