This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 03b75eb  SOLR-15862 Use lucene baseVersion 9.0.0 for property 
tests.luceneMatchVersion instead of Solr version
03b75eb is described below

commit 03b75eb6f9c7d77e51c574d1c1dc9577f98dfa81
Author: Jan Høydahl <[email protected]>
AuthorDate: Thu Jan 6 19:44:17 2022 +0100

    SOLR-15862 Use lucene baseVersion 9.0.0 for property 
tests.luceneMatchVersion instead of Solr version
---
 build.gradle                        | 2 ++
 gradle/testing/randomization.gradle | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/build.gradle b/build.gradle
index 1847a4b..fb8f757 100644
--- a/build.gradle
+++ b/build.gradle
@@ -81,6 +81,8 @@ ext {
 
   minJavaVersion = JavaVersion.VERSION_11
 
+  luceneBaseVersion = '9.0.0' // TODO: Use 
org.apache.lucene.util.Version.LATEST.toString()
+
   // Declare script dependency versions outside of palantir's
   // version unification control. These are not our main dependencies.
   scriptDepVersions = [
diff --git a/gradle/testing/randomization.gradle 
b/gradle/testing/randomization.gradle
index 1b6c233..2ad4ed4 100644
--- a/gradle/testing/randomization.gradle
+++ b/gradle/testing/randomization.gradle
@@ -99,7 +99,7 @@ allprojects {
           // test data
           [propName: 'tests.linedocsfile', value: 'europarl.lines.txt.gz', 
description: "Test data file path."],
           // miscellaneous; some of them very weird.
-          [propName: 'tests.LUCENE_VERSION', value: baseVersion, description: 
"Base Lucene version."],
+          [propName: 'tests.LUCENE_VERSION', value: luceneBaseVersion, 
description: "Base Lucene version."],
           [propName: 'tests.bwcdir', value: null, description: "Data for 
backward-compatibility indexes."],
       ]
     }
@@ -111,7 +111,7 @@ configure(allprojects.findAll {project -> 
project.path.startsWith(":solr") }) {
   plugins.withType(JavaPlugin) {
     ext {
       testOptions += [
-          [propName: 'tests.luceneMatchVersion', value: baseVersion, 
description: "Base Lucene version."],
+          [propName: 'tests.luceneMatchVersion', value: luceneBaseVersion, 
description: "Base Lucene version."],
           [propName: 'common-solr.dir',
            value: project(":solr").projectDir,
            description: "Solr base dir.",

Reply via email to