Apache Lucene open-source search software
Correct formatting of gradle files.
Dawid Weiss72182e3f24f7
diff --git a/lucene/benchmark/build.gradle b/lucene/benchmark/build.gradleindex ffc443e39e0..ad4b337eedc 100644--- a/lucene/benchmark/build.gradle+++ b/lucene/benchmark/build.gradle@@ -69,8 +69,8 @@ def outputFileOption = buildOptions.addFileOption("standardOutput", "Path to thetasks.register("run", JavaExec, {description = "Run a perf test (optional: -PtaskAlg=conf/your-algorithm-file -PmaxHeapSize=1G). Before" +- " running this, you need to download the dataset the benchmark runs against (e.g., by getReuters" +- " task). See dataset download tasks for more details."+ " running this, you need to download the dataset the benchmark runs against (e.g., by getReuters" ++ " task). See dataset download tasks for more details."group = "Utility launchers"mainClass = 'org.apache.lucene.benchmark.byTask.Benchmark'diff --git a/lucene/core/build.gradle b/lucene/core/build.gradleindex 2d7d7cc400a..aaeda5961f0 100644--- a/lucene/core/build.gradle+++ b/lucene/core/build.gradle@@ -60,7 +60,7 @@ createForUtilRegenerateTask(project, "ForUtil", "ForUtil.java", "gen_ForUtil.py"configure(project(":lucene:backward-codecs")) {createForUtilRegenerateTask(project, "ForUtil90", "ForUtil.java", "gen_ForUtil.py",- file("src/java/org/apache/lucene/backward_codecs/lucene90"))+ file("src/java/org/apache/lucene/backward_codecs/lucene90"))createForUtilRegenerateTask(project, "ForUtil99", "ForUtil.java", "gen_ForUtil.py",file("src/java/org/apache/lucene/backward_codecs/lucene99"))@@ -108,11 +108,11 @@ configure(project(":lucene:core")) {doLast {ant.replace(- file: file('src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.java'),- encoding: "UTF-8",- token: "private static final int ZZ_BUFFERSIZE =",- value: "private int ZZ_BUFFERSIZE ="- )+ file: file('src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.java'),+ encoding: "UTF-8",+ token: "private static final int ZZ_BUFFERSIZE =",+ value: "private int ZZ_BUFFERSIZE ="+ )}})}@@ -217,11 +217,11 @@ configure(project(":lucene:analysis:common")) {doLast {ant.replace(- file: file('src/java/org/apache/lucene/analysis/email/UAX29URLEmailTokenizerImpl.java'),- encoding: "UTF-8",- token: "private static final int ZZ_BUFFERSIZE =",- value: "private int ZZ_BUFFERSIZE ="- )+ file: file('src/java/org/apache/lucene/analysis/email/UAX29URLEmailTokenizerImpl.java'),+ encoding: "UTF-8",+ token: "private static final int ZZ_BUFFERSIZE =",+ value: "private int ZZ_BUFFERSIZE ="+ )}})@@ -245,10 +245,10 @@ configure(project(":lucene:analysis:common")) {doLast {project.ant.fixcrlf(- file: target,- encoding: "UTF-8",- eol: "lf"- )+ file: target,+ encoding: "UTF-8",+ eol: "lf"+ )}})diff --git a/lucene/luke/build.gradle b/lucene/luke/build.gradleindex ee98d136cf2..c25c2e48b3a 100644--- a/lucene/luke/build.gradle+++ b/lucene/luke/build.gradle@@ -110,12 +110,12 @@ def standaloneAssembleTask = tasks.register("standaloneAssemble", Sync, {doLast {logger.lifecycle(- """+ """Standalone Luke distribution assembled. You can run it with:java -jar "${standaloneDistDir}/${standaloneJarName}"java --module-path "${standaloneDistDir}" -m org.apache.lucene.luke"""- )+ )}})diff --git a/lucene/queryparser/build.gradle b/lucene/queryparser/build.gradleindex ba1e1242980..228ad8fba89 100644--- a/lucene/queryparser/build.gradle+++ b/lucene/queryparser/build.gradle@@ -36,8 +36,8 @@ def commonCleanups = { FileTree generatedFiles ->generatedFiles.matching({include "CharStream.java"}).each {file ->buildGlobals.modifyFile(file, {text ->return text.replace(- "implemetation", // spellchecker:disable-line- "implementation");+ "implemetation", // spellchecker:disable-line+ "implementation");})}@@ -55,8 +55,8 @@ def commonCleanups = { FileTree generatedFiles ->buildGlobals.modifyFile(file, {text ->// Remove redundant imports.text = text.replaceAll(- /(?m)^import .+/,- "")+ /(?m)^import .+/,+ "")// Add CharStream imports.text = text.replaceAll(/package (.+)/,@@ -106,8 +106,8 @@ tasks.register("regenerateClassicQueryParser", JavaCCTask, {generatedFiles.matching {include "QueryParser.java"}.each {file ->buildGlobals.modifyFile(file, {text ->text = text.replace(- "public QueryParser(CharStream ",- "protected QueryParser(CharStream ")+ "public QueryParser(CharStream ",+ "protected QueryParser(CharStream ")text = text.replace("public QueryParser(QueryParserTokenManager ","protected QueryParser(QueryParserTokenManager ")@@ -145,8 +145,8 @@ tasks.register("regenerateSurroundQueryParser", JavaCCTask, {generatedFiles.matching {include "QueryParser.java"}.each {file ->buildGlobals.modifyFile(file, {text ->text = text.replace(- "import org.apache.lucene.analysis.TokenStream;",- "")+ "import org.apache.lucene.analysis.TokenStream;",+ "")text = text.replace("new java.util.ArrayList<int[]>","new java.util.ArrayList<>")@@ -172,8 +172,8 @@ tasks.register("regenerateFlexibleStandardSyntaxParser", JavaCCTask, {buildGlobals.modifyFile(file, {text ->// Modify constructor.text = text.replace(- "class ParseException extends Exception",- "class ParseException extends QueryNodeParseException")+ "class ParseException extends Exception",+ "class ParseException extends QueryNodeParseException")// Modify imports.text = text.replace(@@ -223,8 +223,8 @@ tasks.register("regenerateFlexibleStandardSyntaxParser", JavaCCTask, {buildGlobals.modifyFile(file, {text ->// Remove redundant casttext = text.replace(- "new java.util.ArrayList<int[]>",- "new java.util.ArrayList<>")+ "new java.util.ArrayList<int[]>",+ "new java.util.ArrayList<>")text = text.replace("new ArrayList<QueryNode>()","new ArrayList<>()")