Apache Lucene open-source search software
LUCENE-9382: update gradle to 6.4.1. (#1549)
Dawid Weiss3e8e5d8cf647
diff --git a/gradle/validation/check-environment.gradle b/gradle/validation/check-environment.gradleindex 8d83e046eb3..0f3a0846930 100644--- a/gradle/validation/check-environment.gradle+++ b/gradle/validation/check-environment.gradle@@ -22,7 +22,7 @@ import org.gradle.util.GradleVersionconfigure(rootProject) {ext {- expectedGradleVersion = '6.0.1'+ expectedGradleVersion = '6.4.1'minJavaVersion = JavaVersion.VERSION_11}diff --git a/gradle/validation/validate-log-calls.gradle b/gradle/validation/validate-log-calls.gradleindex a81fd3bd3d6..76fee5af052 100644--- a/gradle/validation/validate-log-calls.gradle+++ b/gradle/validation/validate-log-calls.gradle@@ -34,11 +34,13 @@ import org.apache.tools.ant.BuildException// See the associated help task "gradlew helpValidateLogCalls"-allprojects {+configure(subprojects.findAll { it.path.startsWith(':solr') }) {plugins.withType(JavaPlugin) {task validateLogCalls(type: ValidateLogCallsTask) {description "Checks that log calls are either validated or conform to efficient patterns."group "verification"++ sourceFiles = files(sourceSets*.java)}}}@@ -53,6 +55,7 @@ class ValidateLogCallsTask extends DefaultTask {violations.add(System.lineSeparator + msg);errsFound++;}+// We have a log.something line, check for patterns we're not fond of.def checkLine(File file, String line, int lineNumber, String previous) {boolean violation = false@@ -204,31 +207,35 @@ class ValidateLogCallsTask extends DefaultTask {reportViolation("Bad state, should be 0-1 in the switch statement") // make people aware the code sucksbreak}- switch (state) { // It's just easier to do this here rather than read another line in the switch above.- case 0: // Not collcting a log line++ // It's just easier to do this here rather than read another line in the switch above.+ if (state == 0) {+ // Not collecting a log lineprevLine = line.toLowerCase();- break;- case 1: // collecting a logging line.- break;- case 2: // We've collected the complete log line.+ } else if (state == 1) {+ // collecting a logging line.+ } else if (state == 2) {+ // We've collected the complete log line.checkLine(file, sb.toString(), lineNumber, prevLine)state = 0- break;- default:- break;+ } else {+ assert false}}- return+ }++ @InputFiles+ FileCollection sourceFiles++ ValidateLogCallsTask() {+ // No explicit outputs (outputs always up to date).+ outputs.upToDateWhen { true }}@TaskActiondef checkLogLines() {-- project.sourceSets.each { srcSet ->- srcSet.java.each { f ->- checkFile(f)- }- }+ sourceFiles.each { checkFile(it) }+ logger.warn("Checked: ${sourceFiles.files.size()}")if (errsFound > 0) {throw new BuildException(String.format(Locale.ENGLISH, 'Found %d violations in source files (%s).',diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jarindex cc4fdc293d0..62d4c053550 100644Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differdiff --git a/gradle/wrapper/gradle-wrapper.jar.sha256 b/gradle/wrapper/gradle-wrapper.jar.sha256index a9b144f3925..f315f8d93ac 100644--- a/gradle/wrapper/gradle-wrapper.jar.sha256+++ b/gradle/wrapper/gradle-wrapper.jar.sha256@@ -1 +1 @@-28b330c20a9a73881dfe9702df78d4d78bf72368e8906c70080ab6932462fe9e\ No newline at end of file+70239e6ca1f0d5e3b2808ef6d82390cf9ad58d3a3a0d271677a51d1b89475857\ No newline at end of filediff --git a/gradle/wrapper/gradle-wrapper.jar.version b/gradle/wrapper/gradle-wrapper.jar.versionindex 6d54bbd7751..306894a15ed 100644--- a/gradle/wrapper/gradle-wrapper.jar.version+++ b/gradle/wrapper/gradle-wrapper.jar.version@@ -1 +1 @@-6.0.1\ No newline at end of file+6.4.1\ No newline at end of filediff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.propertiesindex 1ba7206f882..21e622da69c 100644--- a/gradle/wrapper/gradle-wrapper.properties+++ b/gradle/wrapper/gradle-wrapper.properties@@ -1,5 +1,5 @@distributionBase=GRADLE_USER_HOMEdistributionPath=wrapper/dists-distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip+distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-all.zipzipStoreBase=GRADLE_USER_HOMEzipStorePath=wrapper/dists