@@ -15,18 +15,38 @@ up as "covered" when tests in Module A touch it.
1515 - Supports different build variants per module within the same report.
1616 - Supports custom package/class filters.
1717
18+ > Notice: Due to the [ shutdown of Bintray/JCenter] ( https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/ )
19+ > the Android-Root-Coverage-Plugin has been migrated
20+ > to Sonatype's Maven Central repository. Unfortunately this also meant that the group ID used by
21+ > the Android-Root-Coverage-Plugin had to be changed from ` org.neotech.plugin ` to
22+ > ` nl.neotech.plugin ` . The plugin ID has also changed from ` org.neotech.plugin.rootcoverage ` to
23+ > ` nl.neotech.plugin.rootcoverage ` .
24+ >
25+ > Soon current release (1.3.0) and older versions will no longer be available through
26+ > Bintray/JCenter, however since these versions have also been released to the Gradle Plugin Portal,
27+ > you can use that repository instead:
28+ > ``` groovy
29+ > maven {
30+ > url "https://plugins.gradle.org/m2/"
31+ > }
32+ > ```
33+ >
34+ > The current version has been re-released with the new group ID and plugin ID to Maven Central and
35+ > the Gradle Plugin Portal (1.3.1), new versions will also be released to these repositories. See
36+ > the 'Setup' section of this readme on how to use this plugin with the updated group ID and
37+ > plugin ID.
1838
1939# Setup
2040Apply the Android-Root-Coverage-Plugin plugin to your top-level (root project) gradle file:
2141
2242```groovy
2343// Step 2: Apply the plugin to the top-level gradle file
24- apply plugin: 'org .neotech.plugin.rootcoverage'
44+ apply plugin: 'nl .neotech.plugin.rootcoverage'
2545
2646buildscript {
2747 dependencies {
2848 // Step 1: add the dependency
29- classpath 'org .neotech.plugin:android-root-coverage-plugin:1.3.0 '
49+ classpath 'nl .neotech.plugin:android-root-coverage-plugin:1.3.1 '
3050 }
3151}
3252```
@@ -60,13 +80,16 @@ Android Studio using the Gradle Tool Window (see:
6080# Compatibility
6181| Version | Android Gradle plugin version | Gradle version |
6282| ------------- | ----------------------------- | -------------- |
63- | ** 1.3.0 ** | 3.6 | 5.6.4+ |
83+ | ** 1.3.1 ** | 3.6 | 5.6.4+ |
6484| ** 1.2.1** | 3.5 | 5.4.1+ |
6585| ** 1.1.2** | 3.4 | 5.1.1+ |
6686| ** 1.1.1** | 3.3 | 4.10.1+ |
67- | ~~ ** 1.1.0** ~~ | ~~ 3.3~~ | ~~ 5+~~ |
6887| ** 1.0.2** | 3.2 | 4.6+ |
6988
89+ * Note: Versions below 1.3.1, such as 1.3.0, are only available on the Gradle Plugin Portal
90+ (` maven { url "https://plugins.gradle.org/m2/"} ` ) and not on Maven Central. These versions use the
91+ group ID ` org.neotech.plugin ` and plugin ID ` org.neotech.plugin.rootcoverage ` !*
92+
7093* Note: This plugin normally supports exactly the same Gradle versions as the Android Gradle
7194plugin, for more information please refer to:*
7295< https://developer.android.com/studio/releases/gradle-plugin#updating-gradle >
@@ -93,6 +116,11 @@ rootCoverage {
93116 // Class exclude patterns
94117 excludes = ["**/some.package/**"]
95118
119+ // Since 1.1 generateHtml is by default true
120+ generateCsv false
121+ generateHtml true
122+ generateXml false
123+
96124 // Since 1.2: When false the plugin does not execute any tests, useful when you run the tests manually or remote (Firebase Test Lab)
97125 executeTests true
98126
@@ -121,10 +149,7 @@ projects. But if you like to add some actually functionality, this is the wish l
121149
122150** How to test your changes/additions?**
123151The plugin comes with an integration test. You can run this test either by executing
124- ` gradlew clean test ` or run the test directly from Android Studio (or IntelliJ IDEA) using a proper run/test
125- configuration as shown in the image * (by default it generates configuration that is not compatible
126- with a plugin module)* :
127- ![ Correct run/test configuration] ( correct-test-run-configuration.png )
152+ ` gradlew clean test ` or run the test directly from Android Studio (or IntelliJ IDEA).
128153
129154
130155# Author note
0 commit comments