Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
friederbluemle committed Jan 16, 2020
1 parent 7383f93 commit 0f50044
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# android-maven-publish

[![Build Status](https://travis-ci.org/wupdigital/android-maven-publish.svg?branch=master)](https://travis-ci.org/wupdigital/android-maven-publish)
[![Coverage Status](https://coveralls.io/repos/github/wupdigital/android-maven-publish/badge.svg?branch=master)](https://coveralls.io/github/wupdigital/android-maven-publish?branch=master)
[![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](LICENSE)

# android-maven-publish

Modification of the standard Maven Publish plugin to be compatible with _android-library_ projects (_aar_).

## Applying the plugin

``` groovy
```groovy
plugins {
id 'digital.wup.android-maven-publish' version '3.6.2'
id 'digital.wup.android-maven-publish' version '3.6.3'
}
```

-or-

``` groovy
```groovy
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'digital.wup:android-maven-publish:3.6.2'
classpath 'digital.wup:android-maven-publish:3.6.3'
}
}
Expand All @@ -38,7 +38,7 @@ The `android` component is used to determine which _aar_ files are published and

Please refer to the standard [Maven Publish plugin documentation](https://docs.gradle.org/current/userguide/publishing_maven.html).

``` groovy
```groovy
publishing {
publications {
mavenAar(MavenPublication) {
Expand All @@ -50,11 +50,10 @@ publishing {

If you want to publish custom variants:

``` groovy
```groovy
publishing {
publications {
android.libraryVariants.all { variant ->
"maven${variant.name.capitalize()}Aar"(MavenPublication) {
from components.findByName("android${variant.name.capitalize()}")
groupId 'digital.wup.test-publish'
Expand Down

0 comments on commit 0f50044

Please sign in to comment.