Skip to content

Commit 4f2e17e

Browse files
Ram042rtfpessoa
authored andcommitted
add alternative gradle task (#39)
1 parent 1cf2e7a commit 4f2e17e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,30 @@ task (codacyLocs) << {
114114
}
115115
```
116116

117+
___
118+
Gradle task by [Mr_ramych](https://github.com/MrRamych). Made up from solution above.
119+
120+
```gradle
121+
configurations { codacy }
122+
repositories {
123+
maven { url "https://jitpack.io" }
124+
maven { url "http://dl.bintray.com/typesafe/maven-releases" }
125+
}
126+
dependencies {
127+
codacy 'com.github.codacy:codacy-coverage-reporter:-SNAPSHOT'
128+
}
129+
task sendCoverageToCodacy(type: JavaExec, dependsOn: jacocoTestReport) {
130+
main = "com.codacy.CodacyCoverageReporter"
131+
classpath = configurations.codacy
132+
args = [
133+
"-l",
134+
"Java",
135+
"-r",
136+
"${buildDir}/reports/jacoco/test/jacocoTestReport.xml"
137+
]
138+
}
139+
```
140+
117141
## Community supported alternatives
118142

119143
### Maven plugin

0 commit comments

Comments
 (0)