Apache Lucene open-source search software
Rename the generated apijar files to -api.jar. (#14909)
Dawid Weiss6ef027389da4
diff --git a/build-tools/build-infra/src/main/groovy/lucene.java.core.mrjar.gradle b/build-tools/build-infra/src/main/groovy/lucene.java.core.mrjar.gradleindex 2bf5bc12954..c6623860de8 100644--- a/build-tools/build-infra/src/main/groovy/lucene.java.core.mrjar.gradle+++ b/build-tools/build-infra/src/main/groovy/lucene.java.core.mrjar.gradle@@ -30,7 +30,7 @@ configure(project(":lucene:core")) {dependencies.add("main${jdkVersion}Implementation", sourceSets.main.output)tasks.named("compileMain${jdkVersion}Java").configure {- def apijar = apijars.file("jdk${jdkVersion}.apijar")+ def apijar = apijars.file("jdk${jdkVersion}-api.jar")// TODO: this depends on the order of argument configuration...int releaseIndex = options.compilerArgs.indexOf("--release")diff --git a/build-tools/build-infra/src/main/groovy/lucene.regenerate.extract-jdk-apis.gradle b/build-tools/build-infra/src/main/groovy/lucene.regenerate.extract-jdk-apis.gradleindex 05d2a692ce5..5bb519ffb8a 100644--- a/build-tools/build-infra/src/main/groovy/lucene.regenerate.extract-jdk-apis.gradle+++ b/build-tools/build-infra/src/main/groovy/lucene.regenerate.extract-jdk-apis.gradle@@ -48,7 +48,7 @@ configure(project(":lucene:core")) {args = [rootProject.minJavaVersion.toString(),jdkVersion,- apijars.file("jdk${jdkVersion}.apijar"),+ apijars.file("jdk${jdkVersion}-api.jar"),]}diff --git a/lucene/core/src/generated/jdk/README.md b/lucene/core/src/generated/jdk/README.mdindex f454b2c5431..3fbb074b005 100644--- a/lucene/core/src/generated/jdk/README.md+++ b/lucene/core/src/generated/jdk/README.md@@ -17,13 +17,13 @@# Generated Java API signatures files-This directory contains generated `.apijar` files. Those are special JAR files containing+This directory contains generated `*-api.jar` files. Those are special JAR files containingclass files that only have public signatures of certain packages of the Java classlibrary, but no bytecode at all. Those files are only used to compile the MR-JAR of ApacheLucene while allowing to link against APIs only provided as preview or incubating APIs infuture JDK versions.-`.apijar` files are provided for developer's convenience in the Lucene source tree.+These API jar files are provided for developer's convenience in the Lucene source tree.They are not part of Lucene's APIs or source code and are not part of binary releases.See them as binary blobs with encoded information also provided through the public[Javadocs](https://docs.oracle.com/en/java/javase/) of the corresponding Javadiff --git a/lucene/core/src/generated/jdk/jdk24.apijar b/lucene/core/src/generated/jdk/jdk24-api.jarsimilarity index 100%rename from lucene/core/src/generated/jdk/jdk24.apijarrename to lucene/core/src/generated/jdk/jdk24-api.jar