Giter Site home page Giter Site logo

passy / android-maven-gradle-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dcendents/android-maven-gradle-plugin

0.0 3.0 0.0 466 KB

Maven plugin for gradle compatible with android library projects

License: Apache License 2.0

Java 41.16% Groovy 58.84%

android-maven-gradle-plugin's Introduction

GitHub license Build Status Stories in Ready codecov.io Maven Central

Gradle Android Maven plugin

Modification to the standard Maven plugin to be compatible with android-library projects (aar).

Usage

To use the android-maven-gradle-plugin, just apply the plugin in your android-library project. Also add the plugin classpath dependency to the buildScript.

buildscript {
	repositories {
		mavenCentral()
	}

	dependencies {
		classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
	}
}

apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

Or use the new syntax since Gradle 2.1

plugins {
  id "com.github.dcendents.android-maven" version "1.5"
}

You can set the maven groupId and version in the script build.gradle:

group = 'com.example'
version = '1.0'

The artifactId is set in settings.gradle:

rootProject.name = 'artifact'

Note:

  • For multi-projects build, please refer to issue #9: dcendents#9
  • For proper exclusion in the generated maven pom, use both group and module notation:
	compile('com.group:lib-module:1.0') {
	        exclude group: 'com.exclusion.group', module: 'module.name'
    }

Documentation

Please refer to the standard Maven plugin documentation: http://gradle.org/docs/current/userguide/maven_plugin.html

Note on Releases

The following table shows the compatibility between the android-maven-gradle-plugin and gradle versions. It also lists the plugin name to use:

Plugin Version Plugin Name Dependency Information Gradle Version
1.0 android-maven com.github.dcendents:android-maven-plugin:1.0 1.8+
1.1 android-maven com.github.dcendents:android-maven-plugin:1.1 1.12+
1.2 com.github.dcendents.android-maven com.github.dcendents:android-maven-plugin:1.2 2.2+
1.3 com.github.dcendents.android-maven com.github.dcendents:android-maven-gradle-plugin:1.3 2.4+
1.4.1 com.github.dcendents.android-maven com.github.dcendents:android-maven-gradle-plugin:1.4.1 2.14+
1.5 com.github.dcendents.android-maven com.github.dcendents:android-maven-gradle-plugin:1.5 3.0+

Build Metrics

Build Status codecov.io Dependency Statuscodecov.io Throughput Graph

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

android-maven-gradle-plugin's People

Contributors

almozavr avatar barnhill avatar dcendents avatar omizm avatar waffle-iron avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.