Skip to content

Commit 6319671

Browse files
committed
Update gradle. Fix gradle warnings.
1 parent cc00f7d commit 6319671

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
@@ -18,6 +18,11 @@ buildscript {
1818
dependencies {
1919
classpath "com.ofg:uptodate-gradle-plugin:$uptodateVersion"
2020
}
21+
22+
wrapper {
23+
gradleVersion = "4.10.2"
24+
distributionType = Wrapper.DistributionType.ALL
25+
}
2126
}
2227

2328
if (JavaVersion.current().isJava8Compatible()) {
@@ -111,23 +116,10 @@ subprojects {
111116
}
112117
}
113118

114-
jacocoTestReport {
115-
additionalSourceDirs = files(sourceSets.main.allSource.srcDirs)
116-
sourceDirectories = files(sourceSets.main.allSource.srcDirs)
117-
classDirectories = files(sourceSets.main.output)
118-
reports {
119-
html.enabled = true
120-
xml.enabled = true
121-
csv.enabled = false
122-
}
123-
}
124-
125-
task coverage(dependsOn: ["test", "jacocoTestReport"]) << {}
126-
127119
}
128120

129121
task coverage(type: org.gradle.testing.jacoco.tasks.JacocoReport) {
130-
dependsOn = subprojects.coverage
122+
dependsOn = subprojects*.test
131123
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
132124
// We only care about coverage of:
133125
def projectForFoverage = ["core", "quickcheck", "java-core"]
@@ -186,14 +178,14 @@ configure(subprojects.findAll { it.name != "props-core" }) {
186178
}
187179

188180
// Output MANIFEST.MF statically so eclipse can see it for plugin development
189-
task eclipsePluginManifest(dependsOn: jar) << {
181+
task eclipsePluginManifest(dependsOn: jar) doLast {
190182
file("META-INF").mkdirs()
191183
jar.manifest.writeTo(file("META-INF/MANIFEST.MF"))
192184
}
193185

194186
eclipseProject.dependsOn eclipsePluginManifest
195187
}
196188

197-
task env << {
189+
task env doLast {
198190
println System.getenv()
199191
}

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)