Skip to content

Commit dc27159

Browse files
committed
Upgrade to gradle 8.13
1 parent 10c421d commit dc27159

File tree

14 files changed

+210
-150
lines changed

14 files changed

+210
-150
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ gradle.projectsEvaluated {
8484

8585
tasks.named('wrapper') {
8686
distributionType = Wrapper.DistributionType.ALL
87-
gradleVersion = '6.9.1'
87+
gradleVersion = '8.13'
8888
}
8989

9090
// Set up properties needed for all testing, adds "testAll" task to root
9191
apply from: "$rootDir/gradle/root/testing.gradle"
9292
// Generates coverage report for testAll
93-
apply from: "$rootDir/gradle/root/coverage.gradle"
93+
//apply from: "$rootDir/gradle/root/coverage.gradle"
9494
// Attaches fatJar tasks to root project (makes toolsUI, ncIdv, etc.)
9595
apply from: "$rootDir/gradle/root/fatJars.gradle"
9696
// Creates pubs for artifacts created in fatJars.gradle

docs/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ tasks.withType(JavaCompile).configureEach {
189189
options.compilerArgs = ['-Xlint:deprecation']
190190
}
191191

192-
apply plugin: 'com.diffplug.gradle.spotless'
192+
apply plugin: 'com.diffplug.spotless'
193193
spotless {
194194
java {
195195
// target java files in the test directory

gradle/any/coverage.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ tasks.withType(JacocoReport).all { // Will apply to ":<subproject>:jacocoTestRe
4444
group = 'Reports'
4545
dependsOn tasks.withType(Test)
4646

47-
reports {
48-
xml.enabled = false
49-
html.enabled = true
50-
csv.enabled = false
51-
}
52-
5347
// By default, JacocoReport runs onlyIf ALL of the executionData exist. We want it to run if ANY exists.
5448
setOnlyIf {
5549
executionData.any {

gradle/any/dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ configurations.all {
5656
// +--- org.apache.httpcomponents:httpclient:4.5.12
5757
// | ...
5858
//
59-
substitute module('commons-logging:commons-logging') because 'we want to control JCL logging with slf4j' with module("org.slf4j:jcl-over-slf4j:${depVersion.slf4j}")
59+
substitute module('commons-logging:commons-logging') because 'we want to control JCL logging with slf4j' using module("org.slf4j:jcl-over-slf4j:${depVersion.slf4j}")
6060
}
6161
}

gradle/any/java-library.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ apply from: "$rootDir/gradle/any/spotless.gradle"
99
apply plugin: 'maven-publish'
1010

1111
def sourceJar = tasks.register('sourceJar', Jar) {
12-
classifier 'sources'
12+
setArchiveClassifier('sources')
1313
from sourceSets.main.allJava
1414
}
1515

1616
def javadocJar = tasks.register('javadocJar', Jar) {
1717
dependsOn javadoc
18-
classifier 'javadoc'
18+
setArchiveClassifier('javadoc')
1919
from files(javadoc.destinationDir)
2020
}
2121

gradle/any/shared-mvn-coords.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ext {
99
buildPlugins = [:]
1010
buildPlugins.shadow = 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
1111
buildPlugins.sonarqube = 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.0'
12-
buildPlugins.spotless = 'com.diffplug.spotless:spotless-plugin-gradle:4.5.1'
12+
buildPlugins.spotless = 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
1313
buildPlugins.protobuf = 'com.google.protobuf:protobuf-gradle-plugin:0.8.18'
1414
buildPlugins.depcheck = 'org.owasp:dependency-check-gradle:8.2.1'
1515

gradle/any/spotless.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apply plugin: 'java'
2-
apply plugin: 'com.diffplug.gradle.spotless'
2+
apply plugin: 'com.diffplug.spotless'
33

44
spotless {
55
java {

gradle/root/spotless.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ if (!name.equals(rootProject.name)) {
22
throw new GradleException("This script plugin should only be applied to the root project, not '$name'.")
33
}
44

5-
apply plugin: 'com.diffplug.gradle.spotless'
5+
apply plugin: 'com.diffplug.spotless'
66

77
spotless {
88
format 'misc', {

gradle/root/testing.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ gradle.projectsEvaluated {
121121
description = 'Runs all subproject Test tasks'
122122
dependsOn subprojectTestTasks
123123
// If we run testAll, generate coverage report after all of the tests run
124-
finalizedBy jacocoRootReport
124+
//finalizedBy jacocoRootReport
125125
}
126126

127127
task rootTestReport(type: TestReport, group: 'Reports') {
@@ -137,7 +137,7 @@ gradle.projectsEvaluated {
137137
// ":grib:test" --finalizedBy--> ":rootTestReport" --dependsOn--> "all_subproject_Tests"
138138
// In other words, all subproject tests would get run, no matter what.
139139
// Passing File arguments to reportOn() instead doesn't create that dependency.
140-
reportOn subprojectTestTasks*.binResultsDir
140+
reportOn subprojectTestTasks*.binaryResultsDirectory
141141

142142
// Wait until all Test tasks have run. This creates a task *ordering*, not a dependency.
143143
mustRunAfter subprojectTestTasks

gradle/wrapper/gradle-wrapper.jar

-15.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)