Skip to content

Commit 952aa9c

Browse files
committed
Merge branch 'main' into lucene_snapshot
2 parents 1e3d353 + 2cccf13 commit 952aa9c

File tree

158 files changed

+2888
-1736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+2888
-1736
lines changed

.buildkite/pipelines/periodic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ steps:
584584
machineType: n2-standard-8
585585
buildDirectory: /dev/shm/bk
586586
diskSizeGb: 250
587-
if: build.branch == "main" || build.branch == "7.17"
587+
if: build.branch == "main" || build.branch == "8.x" || build.branch == "7.17"
588588
- label: check-branch-consistency
589589
command: .ci/scripts/run-gradle.sh branchConsistency
590590
timeout_in_minutes: 15

build-tools-internal/gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=682b4df7fe5accdca84a4d1ef6a3a6ab096b3efd5edf7de2bd8c758d95a93703
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-all.zip
3+
distributionSha256Sum=fdfca5dbc2834f0ece5020465737538e5ba679deeff5ab6c09621d67f8bb1a15
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-all.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/MrjarPlugin.java

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
import org.gradle.api.tasks.SourceSetContainer;
2323
import org.gradle.api.tasks.compile.CompileOptions;
2424
import org.gradle.api.tasks.compile.JavaCompile;
25+
import org.gradle.api.tasks.javadoc.Javadoc;
2526
import org.gradle.api.tasks.testing.Test;
27+
import org.gradle.external.javadoc.CoreJavadocOptions;
2628
import org.gradle.jvm.tasks.Jar;
2729
import org.gradle.jvm.toolchain.JavaLanguageVersion;
2830
import org.gradle.jvm.toolchain.JavaToolchainService;
@@ -73,8 +75,10 @@ public void apply(Project project) {
7375
List<Integer> mainVersions = findSourceVersions(project);
7476
List<String> mainSourceSets = new ArrayList<>();
7577
mainSourceSets.add(SourceSet.MAIN_SOURCE_SET_NAME);
78+
configurePreviewFeatures(project, javaExtension.getSourceSets().getByName(SourceSet.MAIN_SOURCE_SET_NAME), 21);
7679
List<String> testSourceSets = new ArrayList<>(mainSourceSets);
7780
testSourceSets.add(SourceSet.TEST_SOURCE_SET_NAME);
81+
configurePreviewFeatures(project, javaExtension.getSourceSets().getByName(SourceSet.TEST_SOURCE_SET_NAME), 21);
7882
for (int javaVersion : mainVersions) {
7983
String mainSourceSetName = SourceSet.MAIN_SOURCE_SET_NAME + javaVersion;
8084
SourceSet mainSourceSet = addSourceSet(project, javaExtension, mainSourceSetName, mainSourceSets, javaVersion);
@@ -124,11 +128,8 @@ private SourceSet addSourceSet(
124128
compileTask.setSourceCompatibility(Integer.toString(javaVersion));
125129
CompileOptions compileOptions = compileTask.getOptions();
126130
compileOptions.getRelease().set(javaVersion);
127-
compileOptions.getCompilerArgs().add("--enable-preview");
128-
compileOptions.getCompilerArgs().add("-Xlint:-preview");
129-
130-
compileTask.doLast(t -> { stripPreviewFromFiles(compileTask.getDestinationDirectory().getAsFile().get().toPath()); });
131131
});
132+
configurePreviewFeatures(project, sourceSet, javaVersion);
132133

133134
// Since we configure MRJAR sourcesets to allow preview apis, class signatures for those
134135
// apis are not known by forbidden apis, so we must ignore all missing classes. We could, in theory,
@@ -142,6 +143,21 @@ private SourceSet addSourceSet(
142143
return sourceSet;
143144
}
144145

146+
private void configurePreviewFeatures(Project project, SourceSet sourceSet, int javaVersion) {
147+
project.getTasks().withType(JavaCompile.class).named(sourceSet.getCompileJavaTaskName()).configure(compileTask -> {
148+
CompileOptions compileOptions = compileTask.getOptions();
149+
compileOptions.getCompilerArgs().add("--enable-preview");
150+
compileOptions.getCompilerArgs().add("-Xlint:-preview");
151+
152+
compileTask.doLast(t -> { stripPreviewFromFiles(compileTask.getDestinationDirectory().getAsFile().get().toPath()); });
153+
});
154+
project.getTasks().withType(Javadoc.class).named(name -> name.equals(sourceSet.getJavadocTaskName())).configureEach(javadocTask -> {
155+
CoreJavadocOptions options = (CoreJavadocOptions) javadocTask.getOptions();
156+
options.addBooleanOption("-enable-preview", true);
157+
options.addStringOption("-release", String.valueOf(javaVersion));
158+
});
159+
}
160+
145161
private void configureSourceSetInJar(Project project, SourceSet sourceSet, int javaVersion) {
146162
var jarTask = project.getTasks().withType(Jar.class).named(JavaPlugin.JAR_TASK_NAME);
147163
jarTask.configure(task -> task.into("META-INF/versions/" + javaVersion, copySpec -> copySpec.from(sourceSet.getOutput())));
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.10
1+
8.10.1

docs/changelog/112706.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 112706
2+
summary: Configure keeping source in `FieldMapper`
3+
area: Mapping
4+
type: enhancement
5+
issues: []

docs/changelog/113027.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 113027
2+
summary: Retrieve the source for objects and arrays in a separate parsing phase
3+
area: Mapping
4+
type: bug
5+
issues:
6+
- 112374

docs/changelog/113123.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 113123
2+
summary: "ES|QL: Skip CASE function from `InferIsNotNull` rule checks"
3+
area: ES|QL
4+
type: bug
5+
issues:
6+
- 112704

docs/reference/esql/functions/description/qstr.asciidoc

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/examples/qstr.asciidoc

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/definition/qstr.json

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)