stevesaliman / gradle-cobertura-plugin

Gradle Cobertura Plugin
118 stars 50 forks source link

Usage

See the Usage page for complete details on how to use this plugin.

News

October 31, 2020

It's been almost a year since Gradle first released version 6.2, with its breaking change to an internal Gradle API, and most people have probably updated gradle to at least taht version. It is probably time to make the fix for this issue official. Version 4.0.0 of the Cobertura plugin now supports Gradle 6.2+, but it no longer works with 6.1 or older. If you want to continue using this plugin, you'll need to either update Gradle to at least 6.2, or use an older version of the plugin.

June 20, 2020

Version 3.0.1-SNAPSHOT has been published to the Maven Snapshot repository, which should solve issues running with Gradle 6.2+. I appreciate any feedback on how this new version runs in any version of Gradle.

November 10, 2019

Version 3.0.0 of the Cobertura plugin now supports Gradle 6.0, with thanks to Roberto Perez Alcolea. This release no longer supports or works on older versions of Java and Gradle. Users will need to update to at least Java 8 and Gradle 5.1

March 23, 2019

Version 2.6.1 is a minor release that is meant to get the Cobertura plugin working better with the Scoverage Scala plugin. Thank you to Eyal Roth (@eyalroth) for his suggestions and code examples.

January 5, 2019

Version 2.6.0 supports Gradle 5.1, with thanks to Roberto Alcolea (@rpalcolea)

Introduction

This plugin was inspired by the Cobertura plugin by valkolovos and jvanderpol. This plugin is an improvement over the the original in a few important ways.

Todo:

This is still a work in progress. If anyone would like to help out, here are a few things I'm still trying to accomplish.

Building

To build this plugin from source use the following command:

./gradlew install

This will create a local jar and put it in your local maven repository. you can reference it in your builds like this:

buildscript {
    repositories {
        mavenLocal()
    }
    dependencies {
        classpath 'net.saliman:gradle-cobertura-plugin:3.0.0'
    }
}