@@ -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
2328if (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
129121task 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}
0 commit comments