File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,30 @@ task (codacyLocs) << {
114
114
}
115
115
```
116
116
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
+
117
141
## Community supported alternatives
118
142
119
143
### Maven plugin
You can’t perform that action at this time.
0 commit comments