Skip to content

Contributing to gradle_cobertura

Steven C. Saliman edited this page Aug 27, 2017 · 3 revisions

If you want to contribute on this project, then you need to be able to test your changes. If you have a build that currently uses Cobertura, it has a block that looks like this:

buildscript {
    apply from: 'https://github.com/stevesaliman/gradle-cobertura-plugin/raw/master/repo/gradle_cobertura/gradle_cobertura/1.0/coberturainit.gradle'
}

In order to change your script to load from a local clone of the git repository, you need to change this to:

buildscript {
    repositories {
        mavenCentral()
        maven {
            // The relative path to the repo directory in your gradle_cobertura clone.
            url uri('../../gradle_cobertura/repo')
        }
    }
    dependencies {
        classpath group: 'gradle_cobertura', name: 'gradle_cobertura', version: '1.0'
    }
}

Then make your changes to gradle_cobertura, and run 'gradle uploadArchives'.

Clone this wiki locally