Fix Gradle toolchain download with Gradle 8.4 (#12655) (#12662)

This commit is contained in:
Uwe Schindler 2023-10-12 13:22:48 +02:00 committed by GitHub
parent 2e12a35c87
commit fad6653495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -38,7 +38,7 @@ configure(project(":lucene:core")) {
apiextractor "org.ow2.asm:asm:${scriptDepVersions['asm']}"
}
for (jdkVersion : mrjarJavaVersions) {
mrjarJavaVersions.each { jdkVersion ->
def task = tasks.create(name: "generateJdkApiJar${jdkVersion}", type: JavaExec) {
description "Regenerate the API-only JAR file with public Panama Foreign & Vector API from JDK ${jdkVersion}"
group "generation"

View File

@ -19,7 +19,7 @@
configure(project(":lucene:core")) {
plugins.withType(JavaPlugin) {
for (jdkVersion : mrjarJavaVersions) {
mrjarJavaVersions.each { jdkVersion ->
sourceSets.create("main${jdkVersion}") {
java {
srcDirs = ["src/java${jdkVersion}"]
@ -46,7 +46,7 @@ configure(project(":lucene:core")) {
}
tasks.named('jar').configure {
for (jdkVersion : mrjarJavaVersions) {
mrjarJavaVersions.each { jdkVersion ->
into("META-INF/versions/${jdkVersion}") {
from sourceSets["main${jdkVersion}"].output
}

View File

@ -22,6 +22,10 @@ pluginManagement {
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0"
}
rootProject.name = "lucene-root"
includeBuild("dev-tools/missing-doclet")