Skip to content

Commit 4d65546

Browse files
Merge branch 'opensearch-project:main' into ccr-libs
2 parents 72a4fdf + c876ad5 commit 4d65546

37 files changed

+1036
-87
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
### Description
22
[Describe what this change achieves]
3-
4-
### Issues Resolved
5-
[List any issues this PR will resolve]
6-
3+
4+
### Related Issues
5+
Resolves #[Issue number to be closed when this PR is merged]
6+
<!-- List any other related issues here -->
7+
78
### Check List
89
- [ ] New functionality includes testing.
9-
- [ ] All tests pass
1010
- [ ] New functionality has been documented.
11-
- [ ] New functionality has javadoc added
12-
- [ ] Commits are signed per the DCO using --signoff
11+
- [ ] API changes companion pull request [created](https://github.com/opensearch-project/opensearch-api-specification/blob/main/DEVELOPER_GUIDE.md).
12+
- [ ] Commits are signed per the DCO using `--signoff`.
13+
- [ ] Public documentation issue/PR [created](https://github.com/opensearch-project/documentation-website/issues/new/choose).
1314

1415
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
15-
For more information on following Developer Certificate of Origin and signing off your commits, please check [here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).
16+
For more information on following Developer Certificate of Origin and signing off your commits, please check [here](https://github.com/opensearch-project/common-utils/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

.github/workflows/ci.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,32 @@ jobs:
1818
strategy:
1919
matrix:
2020
java:
21-
- 11
22-
- 17
2321
- 21
24-
name: Build and Test
25-
runs-on: ubuntu-latest
22+
- 23
23+
os:
24+
- ubuntu-24.04-arm # arm64-preview
25+
- ubuntu-24.04 # x64
26+
name: Build and Test Linux
27+
runs-on: ${{ matrix.os }}
2628
container:
2729
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
2830
# this image tag is subject to change as more dependencies and updates will arrive over time
2931
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
3032
# need to switch to root so that github actions can install runner binary on container without permission issues.
31-
options: --user root
33+
options: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }}
3234

3335
steps:
36+
- name: Run start commands
37+
run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}
38+
3439
- name: Checkout
35-
uses: actions/checkout@v2
40+
uses: actions/checkout@v3
3641

3742
- name: Setup Java ${{ matrix.java }}
38-
uses: actions/setup-java@v1
43+
uses: actions/setup-java@v4
3944
with:
4045
java-version: ${{ matrix.java }}
46+
distribution: 'temurin'
4147

4248
- name: Build and Test
4349
run: |
@@ -54,20 +60,20 @@ jobs:
5460
strategy:
5561
matrix:
5662
java:
57-
- 11
58-
- 17
5963
- 21
60-
name: Build and Test
64+
- 23
65+
name: Build and Test Windows
6166
runs-on: windows-latest
6267

6368
steps:
6469
- name: Checkout
65-
uses: actions/checkout@v2
70+
uses: actions/checkout@v3
6671

6772
- name: Setup Java ${{ matrix.java }}
68-
uses: actions/setup-java@v1
73+
uses: actions/setup-java@v4
6974
with:
7075
java-version: ${{ matrix.java }}
76+
distribution: 'temurin'
7177

7278
- name: Build and Test
7379
run: |

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/setup-java@v3
2323
with:
2424
distribution: temurin # Temurin is a distribution of adoptium
25-
java-version: 17
25+
java-version: 21
2626
- uses: actions/checkout@v3
2727
- uses: aws-actions/configure-aws-credentials@v1
2828
with:

DEVELOPER_GUIDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- [Developer Guide](#developer-guide)
22
- [Forking and Cloning](#forking-and-cloning)
33
- [Install Prerequisites](#install-prerequisites)
4-
- [JDK 11](#jdk-11)
4+
- [JDK 21](#jdk-21)
55
- [Building](#building)
66
- [Using IntelliJ IDEA](#using-intellij-idea)
77
- [Submitting Changes](#submitting-changes)
@@ -16,9 +16,9 @@ Fork this repository on GitHub, and clone locally with `git clone`.
1616

1717
### Install Prerequisites
1818

19-
#### JDK 11
19+
#### JDK 21
2020

21-
OpenSearch components build using Java 11 at a minimum. This means you must have a JDK 11 installed with the environment variable `JAVA_HOME` referencing the path to Java home for your JDK 11 installation, e.g. `JAVA_HOME=/usr/lib/jvm/jdk-11`.
21+
OpenSearch components build using Java 21 at a minimum. This means you must have a JDK 21 installed with the environment variable `JAVA_HOME` referencing the path to Java home for your JDK 21 installation, e.g. `JAVA_HOME=/usr/lib/jvm/jdk-21`.
2222

2323
### Building
2424

build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
buildscript {
77
ext {
88
opensearch_group = "org.opensearch"
9-
opensearch_version = System.getProperty("opensearch.version", "3.0.0-SNAPSHOT")
9+
opensearch_version = System.getProperty("opensearch.version", "3.0.0-alpha1-SNAPSHOT")
1010
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
11-
buildVersionQualifier = System.getProperty("build.version_qualifier", "")
12-
kotlin_version = System.getProperty("kotlin.version", "1.8.21")
11+
buildVersionQualifier = System.getProperty("build.version_qualifier", "alpha1")
12+
kotlin_version = System.getProperty("kotlin.version", "1.9.25")
1313
}
1414

1515
repositories {
@@ -30,7 +30,7 @@ buildscript {
3030
plugins {
3131
id 'java-library'
3232
id 'maven-publish'
33-
id 'com.diffplug.spotless' version '6.22.0'
33+
id 'com.diffplug.spotless' version '6.25.0'
3434
}
3535

3636
repositories {
@@ -51,14 +51,14 @@ allprojects {
5151
}
5252
}
5353

54-
targetCompatibility = JavaVersion.VERSION_11
55-
sourceCompatibility = JavaVersion.VERSION_11
54+
targetCompatibility = JavaVersion.VERSION_21
55+
sourceCompatibility = JavaVersion.VERSION_21
5656

5757
apply plugin: 'java'
5858
apply plugin: 'jacoco'
5959
apply plugin: 'signing'
6060
apply plugin: 'maven-publish'
61-
apply plugin: 'com.github.johnrengelman.shadow'
61+
apply plugin: 'com.gradleup.shadow'
6262
// apply plugin: 'io.gitlab.arturbosch.detekt'
6363
apply plugin: 'org.jetbrains.kotlin.jvm'
6464
apply plugin: 'org.jetbrains.kotlin.plugin.allopen'
@@ -143,13 +143,13 @@ tasks.register('ktlintFormat', JavaExec) {
143143
compileKotlin {
144144
kotlinOptions {
145145
freeCompilerArgs = ['-Xjsr305=strict']
146-
jvmTarget = "11"
146+
jvmTarget = "21"
147147
}
148148
}
149149

150150
compileTestKotlin {
151151
kotlinOptions {
152-
jvmTarget = "11"
152+
jvmTarget = "21"
153153
}
154154
}
155155

gradle/wrapper/gradle-wrapper.jar

-19.7 KB
Binary file not shown.
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-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists
7-
distributionSha256Sum=3e1af3ae886920c3ac87f7a91f816c0c7c436f276a6eefdb3da152100fef72ae
7+
distributionSha256Sum=31c55713e40233a8303827ceb42ca48a47267a0ad4bab9177123121e71524c26

gradlew

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

gradlew.bat

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Version 2.16.0.0 2024-07-25
2+
3+
Compatible with OpenSearch 2.16.0
4+
5+
### Maintenance
6+
* Increment version to 2.16.0-SNAPSHOT ([#688](https://github.com/opensearch-project/common-utils/pull/688))
7+
8+
### Enhancements
9+
* [Backport 2.x] Add support for remote monitors ([#694](https://github.com/opensearch-project/common-utils/pull/694))
10+
11+
### Documentation
12+
* Added 2.16.0.0 release notes. ([#700](https://github.com/opensearch-project/common-utils/pull/700))

0 commit comments

Comments
 (0)