Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 948729b

Browse files
committed
Upgrade gradle and cleanup build file
1 parent a1f3e1a commit 948729b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ plugins.withType(JavaPlugin) {
8080
}
8181

8282
test {
83+
maxParallelForks = Math.max(1, (int)(Runtime.getRuntime().availableProcessors() / 4))
8384
jacoco {
8485
excludes = ['**/package-info**','**/*Test']
8586
destinationFile = file("$buildDir/reports/jacoco/test.exec")
@@ -89,26 +90,25 @@ test {
8990
setBinResultsDir(file("${buildDir}/reports/tests/bin"))
9091
}
9192

92-
build.dependsOn("jacocoTestReport");
93+
build.dependsOn jacocoTestReport
9394

9495
jacocoTestReport {
9596
doFirst {
96-
classDirectories = fileTree(dir: 'build/classes/main', include: 'org/threadly/**')
97-
sourceDirectories = fileTree(dir: 'scr/main/java', include: 'org/threadly/**')
97+
classDirectories = fileTree(dir: 'build/classes/java/main', include: 'org/threadly/**')
98+
sourceDirectories = fileTree(dir: 'src/main/java', include: 'org/threadly/**')
9899
}
99100
reports {
100101
csv.enabled = false
101102
xml.enabled = true
102-
xml.destination = file("${buildDir}/reports/jacoco/jacoco.xml")
103+
xml.destination = file("$buildDir/reports/jacoco/jacoco.xml")
103104
html.enabled = true
104-
html.destination = file("${buildDir}/reports/jacoco/html")
105+
html.destination = file("$buildDir/reports/jacoco/html")
105106
}
106107
doLast {
107108
println "Test results available at:"
108109
println "html - $buildDir/reports/tests/html/index.html"
109110
println "Test coverage reports available at:"
110111
println "html - $buildDir/reports/jacoco/html/index.html"
111-
println "xml - $buildDir/reports/jacoco/jacoco.xml"
112112
}
113113
}
114114

gradle/wrapper/gradle-wrapper.jar

-295 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-bin.zip
34
zipStoreBase=GRADLE_USER_HOME
45
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip

0 commit comments

Comments
 (0)