Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using plugin with gradle #35

Closed
Ram042 opened this issue Nov 3, 2016 · 1 comment
Closed

Using plugin with gradle #35

Ram042 opened this issue Nov 3, 2016 · 1 comment

Comments

@Ram042
Copy link
Contributor

Ram042 commented Nov 3, 2016

Just wanted this code to be added to readme.md. It will be very helpful for others

configurations { codacy }
repositories {
    maven { url "https://jitpack.io" }
    maven { url "http://dl.bintray.com/typesafe/maven-releases" }
}
dependencies {
    codacy 'com.github.codacy:codacy-coverage-reporter:-SNAPSHOT'
}
task sendCoverageToCodacy(type: JavaExec, dependsOn: jacocoTestReport) {
    main = "com.codacy.CodacyCoverageReporter"
    classpath = configurations.codacy
    args = [
            "-l",
            "Java",
            "-r",
            "${buildDir}/reports/jacoco/test/jacocoTestReport.xml"
    ]
}
@Ram042 Ram042 changed the title Way of using plugin with gradle Using plugin with gradle Nov 3, 2016
@pedrorijo91
Copy link
Contributor

Feel free to create a PR with those changes @MrRamych

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants