Skip to content

Commit 4c93bae

Browse files
committed
Update gradle. Fix gradle warnings.
1 parent 9f489c9 commit 4c93bae

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

build.gradle

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ buildscript {
2121
classpath "com.ofg:uptodate-gradle-plugin:$uptodateVersion"
2222
classpath "me.tatarka:gradle-retrolambda:$retrolambdaPluginVersion"
2323
}
24+
25+
wrapper {
26+
gradleVersion = "4.10.2"
27+
distributionType = Wrapper.DistributionType.ALL
28+
}
2429
}
2530

2631
if (JavaVersion.current().isJava8Compatible()) {
@@ -117,23 +122,10 @@ subprojects {
117122
}
118123
}
119124

120-
jacocoTestReport {
121-
additionalSourceDirs = files(sourceSets.main.allSource.srcDirs)
122-
sourceDirectories = files(sourceSets.main.allSource.srcDirs)
123-
classDirectories = files(sourceSets.main.output)
124-
reports {
125-
html.enabled = true
126-
xml.enabled = true
127-
csv.enabled = false
128-
}
129-
}
130-
131-
task coverage(dependsOn: ["test", "jacocoTestReport"]) << {}
132-
133125
}
134126

135127
task coverage(type: org.gradle.testing.jacoco.tasks.JacocoReport) {
136-
dependsOn = subprojects.coverage
128+
dependsOn = subprojects*.test
137129
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
138130
// We only care about coverage of:
139131
def projectForFoverage = ["core", "java8", "quickcheck", "java-core"]
@@ -192,14 +184,14 @@ configure(subprojects.findAll { it.name != "props-core" }) {
192184
}
193185

194186
// Output MANIFEST.MF statically so eclipse can see it for plugin development
195-
task eclipsePluginManifest(dependsOn: jar) << {
187+
task eclipsePluginManifest(dependsOn: jar) doLast {
196188
file("META-INF").mkdirs()
197189
jar.manifest.writeTo(file("META-INF/MANIFEST.MF"))
198190
}
199191

200192
eclipseProject.dependsOn eclipsePluginManifest
201193
}
202194

203-
task env << {
195+
task env doLast {
204196
println System.getenv()
205197
}

gradle/wrapper/gradle-wrapper.jar

1.43 KB
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Sat Aug 25 14:20:05 CEST 2018
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-all.zip

0 commit comments

Comments
 (0)