mirror of https://github.com/apache/lucene.git
Upgrade to gradle 8.10 (#13700)
This commit is contained in:
parent
9172cc4247
commit
ea1441c81c
|
@ -30,7 +30,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-latest ]
|
os: [ ubuntu-latest ]
|
||||||
java-version: [ '22' ]
|
java-version: [ '23-ea' ]
|
||||||
uses-alt-java: [ true, false ]
|
uses-alt-java: [ true, false ]
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
@ -61,7 +61,16 @@ jobs:
|
||||||
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable
|
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable
|
||||||
echo "RUNTIME_JAVA_HOME=${{ env.ALT_JAVA_DIR }}" >> "$GITHUB_ENV"
|
echo "RUNTIME_JAVA_HOME=${{ env.ALT_JAVA_DIR }}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- run: ./gradlew -p lucene/core check -x test
|
- name: ./gradlew tidy
|
||||||
|
run: |
|
||||||
|
./gradlew tidy
|
||||||
|
if [ ! -z "$(git status --porcelain)" ]; then
|
||||||
|
echo ":warning: **tidy left local checkout in modified state**" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||||
|
git status --porcelain >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||||
|
git reset --hard && git clean -xfd .
|
||||||
|
fi
|
||||||
|
|
||||||
- name: ./gradlew regenerate
|
- name: ./gradlew regenerate
|
||||||
run: |
|
run: |
|
||||||
|
@ -69,7 +78,7 @@ jobs:
|
||||||
sudo apt-get install libwww-perl
|
sudo apt-get install libwww-perl
|
||||||
./gradlew regenerate -x generateUAX29URLEmailTokenizerInternal --rerun-tasks
|
./gradlew regenerate -x generateUAX29URLEmailTokenizerInternal --rerun-tasks
|
||||||
if [ ! -z "$(git status --porcelain)" ]; then
|
if [ ! -z "$(git status --porcelain)" ]; then
|
||||||
echo ":warning: **regenerateleft local checkout in modified state**" >> $GITHUB_STEP_SUMMARY
|
echo ":warning: **regenerate left local checkout in modified state**" >> $GITHUB_STEP_SUMMARY
|
||||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||||
git status --porcelain >> $GITHUB_STEP_SUMMARY
|
git status --porcelain >> $GITHUB_STEP_SUMMARY
|
||||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||||
|
@ -79,8 +88,7 @@ jobs:
|
||||||
- run: ./gradlew testOpts
|
- run: ./gradlew testOpts
|
||||||
- run: ./gradlew helpWorkflow
|
- run: ./gradlew helpWorkflow
|
||||||
- run: ./gradlew licenses updateLicenses
|
- run: ./gradlew licenses updateLicenses
|
||||||
- run: ./gradlew tidy
|
- run: ./gradlew check -x test -Pvalidation.git.failOnModified=false
|
||||||
- run: ./gradlew check -x test
|
|
||||||
- run: ./gradlew assembleRelease mavenToLocal
|
- run: ./gradlew assembleRelease mavenToLocal
|
||||||
|
|
||||||
# Conserve resources: only run these in non-alt-java mode.
|
# Conserve resources: only run these in non-alt-java mode.
|
||||||
|
|
|
@ -60,8 +60,8 @@ public class WrapperDownloader {
|
||||||
|
|
||||||
public static void checkVersion() {
|
public static void checkVersion() {
|
||||||
int major = Runtime.version().feature();
|
int major = Runtime.version().feature();
|
||||||
if (major != 21 && major != 22) {
|
if (major != 21 && major != 22 && major != 23) {
|
||||||
throw new IllegalStateException("java version must be 21 or 22, your version: " + major);
|
throw new IllegalStateException("java version must be 21, 22 or 23, your version: " + major);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ allprojects {
|
||||||
missingdoclet "org.apache.lucene.tools:missing-doclet"
|
missingdoclet "org.apache.lucene.tools:missing-doclet"
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
project.ext {
|
||||||
relativeDocPath = project.path.replaceFirst(/:\w+:/, "").replace(':', '/')
|
relativeDocPath = project.path.replaceFirst(/:\w+:/, "").replace(':', '/')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ configure(project(":lucene:analysis:kuromoji")) {
|
||||||
apply plugin: deps.plugins.undercouch.download.get().pluginId
|
apply plugin: deps.plugins.undercouch.download.get().pluginId
|
||||||
|
|
||||||
plugins.withType(JavaPlugin) {
|
plugins.withType(JavaPlugin) {
|
||||||
ext {
|
project.ext {
|
||||||
targetDir = file("src/resources")
|
targetDir = file("src/resources")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ configure(project(":lucene:analysis:nori")) {
|
||||||
apply plugin: deps.plugins.undercouch.download.get().pluginId
|
apply plugin: deps.plugins.undercouch.download.get().pluginId
|
||||||
|
|
||||||
plugins.withType(JavaPlugin) {
|
plugins.withType(JavaPlugin) {
|
||||||
ext {
|
project.ext {
|
||||||
targetDir = file("src/resources")
|
targetDir = file("src/resources")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ def beastingMode = gradle.startParameter.taskNames.any{ name -> name == 'beast'
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
plugins.withType(JavaPlugin) {
|
plugins.withType(JavaPlugin) {
|
||||||
ext {
|
project.ext {
|
||||||
testOptions += [
|
testOptions += [
|
||||||
[propName: 'tests.dups', value: 0, description: "Reiterate runs of entire test suites ('beast' task)."]
|
[propName: 'tests.dups', value: 0, description: "Reiterate runs of entire test suites ('beast' task)."]
|
||||||
]
|
]
|
||||||
|
|
|
@ -19,7 +19,7 @@ def recordings = files()
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
plugins.withType(JavaPlugin) {
|
plugins.withType(JavaPlugin) {
|
||||||
ext {
|
project.ext {
|
||||||
testOptions += [
|
testOptions += [
|
||||||
[propName: 'tests.profile', value: false, description: "Enable Java Flight Recorder profiling."]
|
[propName: 'tests.profile', value: false, description: "Enable Java Flight Recorder profiling."]
|
||||||
]
|
]
|
||||||
|
|
|
@ -62,7 +62,7 @@ allprojects {
|
||||||
// Configure test property defaults and their descriptions.
|
// Configure test property defaults and their descriptions.
|
||||||
allprojects {
|
allprojects {
|
||||||
plugins.withType(JavaPlugin) {
|
plugins.withType(JavaPlugin) {
|
||||||
ext {
|
project.ext {
|
||||||
String randomVectorSize = RandomPicks.randomFrom(new Random(projectSeedLong), ["default", "128", "256", "512"])
|
String randomVectorSize = RandomPicks.randomFrom(new Random(projectSeedLong), ["default", "128", "256", "512"])
|
||||||
testOptions += [
|
testOptions += [
|
||||||
// seed, repetition and amplification.
|
// seed, repetition and amplification.
|
||||||
|
@ -135,14 +135,14 @@ allprojects {
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
ext.testOptionsResolved = testOptions.findAll { opt ->
|
project.ext.testOptionsResolved = testOptions.findAll { opt ->
|
||||||
propertyOrDefault(opt.propName, opt.value) != null
|
propertyOrDefault(opt.propName, opt.value) != null
|
||||||
}.collectEntries { opt ->
|
}.collectEntries { opt ->
|
||||||
[(opt.propName): Objects.toString(resolvedTestOption(opt.propName))]
|
[(opt.propName): Objects.toString(resolvedTestOption(opt.propName))]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compute the "reproduce with" string.
|
// Compute the "reproduce with" string.
|
||||||
ext.testOptionsForReproduceLine = testOptions.findAll { opt ->
|
project.ext.testOptionsForReproduceLine = testOptions.findAll { opt ->
|
||||||
if (opt["includeInReproLine"] == false) {
|
if (opt["includeInReproLine"] == false) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ def allSuites = []
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
plugins.withType(JavaPlugin) {
|
plugins.withType(JavaPlugin) {
|
||||||
ext {
|
project.ext {
|
||||||
testOptions += [
|
testOptions += [
|
||||||
[propName: 'tests.slowestTests', value: true, description: "Print the summary of the slowest tests."],
|
[propName: 'tests.slowestTests', value: true, description: "Print the summary of the slowest tests."],
|
||||||
[propName: 'tests.slowestSuites', value: true, description: "Print the summary of the slowest suites."]
|
[propName: 'tests.slowestSuites', value: true, description: "Print the summary of the slowest suites."]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
cb0da6751c2b753a16ac168bb354870ebb1e162e9083f116729cec9c781156b8
|
2db75c40782f5e8ba1fc278a5574bab070adccb2d21ca5a6e5ed840888448046
|
|
@ -1 +1 @@
|
||||||
8.8.0
|
8.10.0
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|
|
@ -266,6 +266,8 @@ Build
|
||||||
|
|
||||||
* GITHUB#13649: Fix eclipse ide settings generation #13649 (Uwe Schindler, Dawid Weiss)
|
* GITHUB#13649: Fix eclipse ide settings generation #13649 (Uwe Schindler, Dawid Weiss)
|
||||||
|
|
||||||
|
* GITHUB#13698: Upgrade to gradle 8.10 (Dawid Weiss)
|
||||||
|
|
||||||
======================== Lucene 9.12.0 =======================
|
======================== Lucene 9.12.0 =======================
|
||||||
|
|
||||||
API Changes
|
API Changes
|
||||||
|
|
|
@ -148,9 +148,10 @@ public class SandboxFacetsExample {
|
||||||
FacetFieldCollectorManager<CountFacetRecorder> collectorManager =
|
FacetFieldCollectorManager<CountFacetRecorder> collectorManager =
|
||||||
new FacetFieldCollectorManager<>(defaultTaxoCutter, defaultRecorder);
|
new FacetFieldCollectorManager<>(defaultTaxoCutter, defaultRecorder);
|
||||||
|
|
||||||
//// (2.1) if we need to collect data using multiple different collectors, e.g. taxonomy and
|
// (2.1) if we need to collect data using multiple different collectors, e.g. taxonomy and
|
||||||
//// ranges, or even two taxonomy facets that use different Category List Field, we can
|
// ranges, or even two taxonomy facets that use different Category List Field, we can
|
||||||
//// use MultiCollectorManager, e.g.:
|
// use MultiCollectorManager, e.g.:
|
||||||
|
//
|
||||||
// TODO: add a demo for it.
|
// TODO: add a demo for it.
|
||||||
// TaxonomyFacetsCutter publishDateCutter = new
|
// TaxonomyFacetsCutter publishDateCutter = new
|
||||||
// TaxonomyFacetsCutter(config.getDimConfig("Publish Date"), taxoReader);
|
// TaxonomyFacetsCutter(config.getDimConfig("Publish Date"), taxoReader);
|
||||||
|
|
|
@ -37,9 +37,9 @@ configure(project(":lucene:distribution")) {
|
||||||
|
|
||||||
// Maven-published submodule JARs are part of the binary distribution.
|
// Maven-published submodule JARs are part of the binary distribution.
|
||||||
// We don't copy their transitive dependencies.
|
// We don't copy their transitive dependencies.
|
||||||
def binaryModules = rootProject.ext.mavenProjects.findAll { p -> !(p in [
|
def binaryModules = rootProject.ext.mavenProjects.findAll { p -> !(p.path in [
|
||||||
// Placed in a separate folder (module layer conflicts).
|
// Placed in a separate folder (module layer conflicts).
|
||||||
project(":lucene:test-framework"),
|
":lucene:test-framework",
|
||||||
]) }
|
]) }
|
||||||
for (Project module : binaryModules) {
|
for (Project module : binaryModules) {
|
||||||
jars(module, {
|
jars(module, {
|
||||||
|
|
|
@ -9,7 +9,7 @@ errorprone = "2.18.0"
|
||||||
flexmark = "0.61.24"
|
flexmark = "0.61.24"
|
||||||
# @keep This is GJF version for spotless/ tidy.
|
# @keep This is GJF version for spotless/ tidy.
|
||||||
googleJavaFormat = "1.23.0"
|
googleJavaFormat = "1.23.0"
|
||||||
groovy = "3.0.21"
|
groovy = "4.0.22"
|
||||||
hamcrest = "2.2"
|
hamcrest = "2.2"
|
||||||
icu4j = "74.2"
|
icu4j = "74.2"
|
||||||
javacc = "7.0.12"
|
javacc = "7.0.12"
|
||||||
|
@ -19,7 +19,7 @@ jmh = "1.37"
|
||||||
jts = "1.17.0"
|
jts = "1.17.0"
|
||||||
junit = "4.13.1"
|
junit = "4.13.1"
|
||||||
# @keep Minimum gradle version to run the build
|
# @keep Minimum gradle version to run the build
|
||||||
minGradle = "8.8"
|
minGradle = "8.10"
|
||||||
# @keep This is the minimum required Java version.
|
# @keep This is the minimum required Java version.
|
||||||
minJava = "21"
|
minJava = "21"
|
||||||
morfologik = "2.1.9"
|
morfologik = "2.1.9"
|
||||||
|
@ -49,7 +49,7 @@ flexmark-ext-abbreviation = { module = "com.vladsch.flexmark:flexmark-ext-abbrev
|
||||||
flexmark-ext-attributes = { module = "com.vladsch.flexmark:flexmark-ext-attributes", version.ref = "flexmark" }
|
flexmark-ext-attributes = { module = "com.vladsch.flexmark:flexmark-ext-attributes", version.ref = "flexmark" }
|
||||||
flexmark-ext-autolink = { module = "com.vladsch.flexmark:flexmark-ext-autolink", version.ref = "flexmark" }
|
flexmark-ext-autolink = { module = "com.vladsch.flexmark:flexmark-ext-autolink", version.ref = "flexmark" }
|
||||||
flexmark-ext-tables = { module = "com.vladsch.flexmark:flexmark-ext-tables", version.ref = "flexmark" }
|
flexmark-ext-tables = { module = "com.vladsch.flexmark:flexmark-ext-tables", version.ref = "flexmark" }
|
||||||
groovy = { module = "org.codehaus.groovy:groovy-all", version.ref = "groovy" }
|
groovy = { module = "org.apache.groovy:groovy-all", version.ref = "groovy" }
|
||||||
hamcrest = { module = "org.hamcrest:hamcrest", version.ref = "hamcrest" }
|
hamcrest = { module = "org.hamcrest:hamcrest", version.ref = "hamcrest" }
|
||||||
icu4j = { module = "com.ibm.icu:icu4j", version.ref = "icu4j" }
|
icu4j = { module = "com.ibm.icu:icu4j", version.ref = "icu4j" }
|
||||||
javacc = { module = "net.java.dev.javacc:javacc", version.ref = "javacc" }
|
javacc = { module = "net.java.dev.javacc:javacc", version.ref = "javacc" }
|
||||||
|
|
Loading…
Reference in New Issue