Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
warnyul committed Oct 8, 2017
1 parent c27fa17 commit 13138b3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## Version 3.0.0 (2017-08-21) [api doc](https://wupdigital.github.io/android-maven-publish/groovydoc/3.0.0/index.html)

* Supports Gradle 3.4 - 4.1
* Support api and implementation configurations
* Support custom variant publishing
* useCompileDependencies is deprecated and no effect anymore.

## Version 2.0.0 (2017-08-08) [api doc](https://wupdigital.github.io/android-maven-publish/groovydoc/2.0.0/index.html)

* Supports Gradle 3.4 - 4.0
Expand Down
27 changes: 16 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ Modification of the standard Maven Publish plugin to be compatible with android-

## Applying the plugin

```
```groovy
plugins {
id 'digital.wup.android-maven-publish' version '2.0.0'
id 'digital.wup.android-maven-publish' version '3.0.0'
}
```
-or-
```
```groovy
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'digital.wup:android-maven-publish:2.0.0'
classpath 'digital.wup:android-maven-publish:3.0.0'
}
}
Expand All @@ -37,7 +37,7 @@ The android component is used to determine which aar files to publish, and which

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

```
```groovy
publishing {
publications {
mavenAar(MavenPublication) {
Expand All @@ -47,15 +47,19 @@ publishing {
}
```

This plugin also fixes [issue](https://github.com/gradle/gradle/issues/1118) by adding a method called `useCompileDependencies`. The method called with a Boolean true parameter will use compile dependencies instead of runtime ones.
If you want publish custom variants:

```
```groovy
publishing {
useCompileDependencies true
publications {
mavenAar(MavenPublication) {
from components.java
android.libraryVariants.all { v ->
"maven${variant.name.capitalize()}Aar"(MavenPublication) {
from components.findByName("android${v.name.capitalize()}")
groupId 'digital.wup.test-publish'
artifactId 'test-publish'
version "1.0.0-${variant.name}"
}
}
}
}
Expand All @@ -67,6 +71,7 @@ publishing {
| ------------- | ----------- | ----------- |
| 1.0.0 | digital.wup:android-maven-publish:1.0.0 | 2.4 - 3.3 |
| 2.0.0 | digital.wup:android-maven-publish:2.0.0 | 3.4 - 4.0 |
| 3.0.0 | digital.wup:android-maven-publish:3.0.0 | 3.4 - 4.1 |

## License

Expand Down
4 changes: 2 additions & 2 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jacocoTestReport {
dependencies {
compile gradleApi()
compile localGroovy()
compileOnly 'com.android.tools.build:gradle:3.0.0-beta6'
testCompile 'com.android.tools.build:gradle:3.0.0-beta6'
compileOnly 'com.android.tools.build:gradle:3.0.0-beta7'
testCompile 'com.android.tools.build:gradle:3.0.0-beta7'
testCompile gradleTestKit()
testCompile('org.spockframework:spock-core:1.1-groovy-2.4') {
exclude module: 'groovy-all'
Expand Down

0 comments on commit 13138b3

Please sign in to comment.