Skip to content

Commit 0b28266

Browse files
authored
Release 1.5.0 (#53)
Google finally released a stable version of the Android Gradle Plugin 7.2 that fixes #36, this means we can finally create a new stable release for this plugin: - Most of the plugin has been rewritten to only make use of public Android Gradle Plugin API's, functionally this should not change anything compared to previous releases. - Adds a minimum required Android Gradle Plugin version check, using an Android Gradle Plugin version that is too old will result in a Gradle build error. - No longer logs warning messages for (sub)projects (modules) that do not use the Android Gradle Plugin. Instead this is now an info message. This info message will only show for (sub)projects that have a build.gradle file (see #45). - No longer logs warning messages asking to apply the JaCoCo plugin yourself, instead the plugin takes care of this now. - Potentially fixes #42, since JaCoCo will now always be applied by the plugin at the root project.
1 parent d043f41 commit 0b28266

File tree

2 files changed

+28
-29
lines changed

2 files changed

+28
-29
lines changed

README.md

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,6 @@ plugin automatically configures Jacoco for you, so you don't have to.
1818
- Custom package/class filters
1919
- Support for mixed build-types
2020

21-
> Notice: Due to the [shutdown of Bintray/JCenter](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/)
22-
> the Android-Root-Coverage-Plugin has been migrated
23-
> to Sonatype's Maven Central repository. Unfortunately this also meant that the group ID used by
24-
> the Android-Root-Coverage-Plugin had to be changed from `org.neotech.plugin` to
25-
> `nl.neotech.plugin`. The plugin ID has also changed from `org.neotech.plugin.rootcoverage` to
26-
> `nl.neotech.plugin.rootcoverage`.
27-
>
28-
> Soon current release (1.3.0) and older versions will no longer be available through
29-
> Bintray/JCenter, however since these versions have also been released to the Gradle Plugin Portal,
30-
> you can use that repository instead:
31-
> ```groovy
32-
> maven {
33-
> url "https://plugins.gradle.org/m2/"
34-
> }
35-
> ```
36-
>
37-
> Version 1.3.0 has been re-released (as 1.3.1) with the new group ID and plugin ID to Maven Central and
38-
> the Gradle Plugin Portal. Upcoming versions will also be released to these repositories. Check the
39-
> [setup](#1-setup) section on how to use this plugin with the updated group ID and plugin ID.
40-
41-
4221
# 1. Setup
4322
Apply the plugin to your top-level (root project) `build.gradle` file using one of the
4423
following methods:
@@ -49,7 +28,7 @@ following methods:
4928
```groovy
5029
// Below buildscript {}
5130
plugins {
52-
id "nl.neotech.plugin.rootcoverage" version "1.4.0"
31+
id "nl.neotech.plugin.rootcoverage" version "1.5.0"
5332
}
5433
```
5534
</details>
@@ -59,12 +38,12 @@ following methods:
5938

6039
```groovy
6140
apply plugin: 'nl.neotech.plugin.rootcoverage'
62-
63-
buildscript {
64-
dependencies {
65-
classpath 'nl.neotech.plugin:android-root-coverage-plugin:1.4.0'
41+
42+
buildscript {
43+
dependencies {
44+
classpath 'nl.neotech.plugin:android-root-coverage-plugin:1.5.0'
45+
}
6646
}
67-
}
6847
```
6948
</details>
7049

@@ -144,7 +123,7 @@ rootCoverage {
144123
# 4. Compatibility
145124
| Version | [Android Gradle plugin version](https://developer.android.com/studio/releases/gradle-plugin#updating-gradle) | Gradle version |
146125
| ------------------ | ------------------------------------------------------------------------------------------------------------ | ----------------- |
147-
| **1.5.0-SNAPSHOT** | 7.2-rc01 | 7.3+ |
126+
| **1.5.0** | 7.2 | 7.3+ |
148127
| **See note 2** | 7.0-7.2-alpha05 | n.a. |
149128
| **1.4.0** | 4.2<br/>4.1 | 6.7.1+<br/>6.5+ |
150129
| **1.3.1** | 4.0<br/>3.6 | 6.1.1+<br/>5.6.4+ |
@@ -168,6 +147,26 @@ see: <https://issuetracker.google.com/issues/109771903> and <https://issuetracke
168147
If your project is affected by this upgrade to an Android Gradle Plugin version of at least `3.4.0-alpha05`.*
169148

170149

150+
# 4. Bintray/JCenter shutdown
151+
Due to the [shutdown of Bintray/JCenter](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/)
152+
the Android-Root-Coverage-Plugin has been migrated to Sonatype's Maven Central repository. Unfortunately this also
153+
meant that the group ID used by the Android-Root-Coverage-Plugin had to be changed from `org.neotech.plugin` to
154+
`nl.neotech.plugin`. The plugin ID has also changed from `org.neotech.plugin.rootcoverage` to `nl.neotech.plugin.rootcoverage`.
155+
156+
JCenter is supposed to stay available as read-only repository, however it is probably better to migrate to
157+
the Gradle Plugin Portal, since all version of this plugin are also available there:
158+
```groovy
159+
pluginManagement {
160+
repositories {
161+
gradlePluginPortal()
162+
}
163+
}
164+
```
165+
Version 1.3.0 has been re-released (as 1.3.1) with the new group ID and plugin ID to Maven Central and the
166+
Gradle Plugin Portal. Upcoming versions will also be released to Maven Central and the Gradle Plugin Portal.
167+
Check the [setup](#1-setup) section on how to use this plugin with the updated group ID and plugin ID.
168+
169+
171170
# 5. Development
172171
Want to contribute? Great! Just clone the repo, code away and create a pull-request. Try to keep changes small and make
173172
sure to follow the code-style as found in the rest of the project.

plugin/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
POM_ARTIFACT_ID=android-root-coverage-plugin
2-
VERSION_NAME=1.5.0-SNAPSHOT
2+
VERSION_NAME=1.5.0
33
POM_NAME=Android Root Coverage Plugin
44
POM_DESCRIPTION=A Gradle plugin for easy generation of combined code coverage reports for Android projects with multiple modules.

0 commit comments

Comments
 (0)