Skip to content

Commit 7204db3

Browse files
jdk upgrade to 25 and gradle upgrade to 9.2 (#1618)
* gradle and jdk upgrade Signed-off-by: Riya Saxena <riysaxen@amazon.com> * gradle and jdk upgrade Signed-off-by: Riya Saxena <riysaxen@amazon.com> --------- Signed-off-by: Riya Saxena <riysaxen@amazon.com>
1 parent e873c6a commit 7204db3

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# This setting says that all jobs should finish, even if one fails
2020
fail-fast: false
2121
matrix:
22-
java: [21, 24]
22+
java: [21, 25]
2323
os:
2424
- ubuntu-24.04-arm # arm64-preview
2525
- ubuntu-24.04 # x64
@@ -82,7 +82,7 @@ jobs:
8282
WORKING_DIR: ${{ matrix.working_directory }}.
8383
strategy:
8484
matrix:
85-
java: [21, 24]
85+
java: [21, 25]
8686
os: [ windows-latest, macos-latest ]
8787
include:
8888
- os: windows-latest

.github/workflows/multi-node-test-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
needs: Get-CI-Image-Tag
1818
strategy:
1919
matrix:
20-
java: [ 21, 24 ]
20+
java: [ 21, 25 ]
2121
# Job name
2222
name: Build and test Security Analytics on linux
2323
# This job runs on Linux

.github/workflows/security-test-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
build-linux:
2121
strategy:
2222
matrix:
23-
java: [ 21, 24 ]
23+
java: [ 21, 25 ]
2424
needs: Get-CI-Image-Tag
2525
# This job runs on Linux
2626
runs-on: ubuntu-latest

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ afterEvaluate {
465465
version = "${project.version}" - "-SNAPSHOT"
466466

467467
into '/usr/share/opensearch/plugins'
468-
from(zipTree(bundlePlugin.archivePath)) {
468+
from(zipTree(bundlePlugin.archiveFile.get().asFile)) {
469469
into opensearchplugin.name
470470
}
471471

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=ed1a8d686605fd7c23bdf62c7fc7add1c5b23b2bbc3721e661934ef4a4911d7c
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip
3+
distributionSha256Sum=16f2b95838c1ddcf7242b1c39e7bbbb43c842f1f1a1a0dc4959b6d4d68abcac3
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-all.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

src/test/java/org/opensearch/securityanalytics/util/IndexUtilsTests.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ public void testGetSchemaVersionWithWrongSchemaVersion() {
5252
}
5353

5454
public void testShouldUpdateIndexWithoutOriginalVersion() throws IOException {
55-
String indexContent = "{\"testIndex\":{\"settings\":{\"index\":{\"creation_date\":\"1558407515699\"," +
56-
"\"number_of_shards\":\"1\",\"number_of_replicas\":\"1\",\"uuid\":\"t-VBBW6aR6KpJ3XP5iISOA\"," +
57-
"\"version\":{\"created\":\"6040399\"},\"provided_name\":\"data_test\"}},\"mapping_version\":123," +
58-
"\"settings_version\":123,\"mappings\":{\"_doc\":{\"properties\":{\"name\":{\"type\":\"keyword\"}}}}}}";
55+
String indexContent = "{\"testIndex\":{\"settings\":{\"index\":{\"creation_date\":\"1558407515699\"," +
56+
"\"number_of_shards\":\"1\",\"number_of_replicas\":\"1\",\"uuid\":\"t-VBBW6aR6KpJ3XP5iISOA\"," +
57+
"\"version\":{\"created\":\"136217927\"},\"provided_name\":\"data_test\"}},\"mapping_version\":123," +
58+
"\"settings_version\":123,\"aliases_version\":1,\"mappings\":{\"_doc\":{\"properties\":{\"name\":{\"type\":\"keyword\"}}}}}}";
5959

60-
String newMapping = "{\"_meta\":{\"schema_version\":10},\"properties\":{\"name\":{\"type\":\"keyword\"}}}";
61-
IndexMetadata index = IndexMetadata.fromXContent(parser(indexContent));
62-
boolean shouldUpdateIndex = IndexUtils.shouldUpdateIndex(index, newMapping);
60+
String newMapping = "{\"_meta\":{\"schema_version\":10},\"properties\":{\"name\":{\"type\":\"keyword\"}}}";
61+
IndexMetadata index = IndexMetadata.fromXContent(parser(indexContent));
62+
boolean shouldUpdateIndex = IndexUtils.shouldUpdateIndex(index, newMapping);
6363

64-
Assert.assertTrue(shouldUpdateIndex);
64+
Assert.assertTrue(shouldUpdateIndex);
6565
}
6666

6767
public void testShouldUpdateIndexWithLaggedVersion() throws IOException {
6868
String indexContent = "{\"testIndex\":{\"settings\":{\"index\":{\"creation_date\":\"1558407515699\"," +
6969
"\"number_of_shards\":\"1\",\"number_of_replicas\":\"1\",\"uuid\":\"t-VBBW6aR6KpJ3XP5iISOA\"," +
70-
"\"version\":{\"created\":\"6040399\"},\"provided_name\":\"data_test\"}},\"mapping_version\":123," +
71-
"\"settings_version\":123,\"mappings\":{\"_doc\":{\"_meta\":{\"schema_version\":1},\"properties\":" +
70+
"\"version\":{\"created\":\"136217927\"},\"provided_name\":\"data_test\"}},\"mapping_version\":123," +
71+
"\"settings_version\":123,\"aliases_version\":1,\"mappings\":{\"_doc\":{\"_meta\":{\"schema_version\":1},\"properties\":" +
7272
"{\"name\":{\"type\":\"keyword\"}}}}}}";
7373

7474
String newMapping = "{\"_meta\":{\"schema_version\":10},\"properties\":{\"name\":{\"type\":\"keyword\"}}}";
@@ -81,7 +81,7 @@ public void testShouldUpdateIndexWithLaggedVersion() throws IOException {
8181
public void testShouldUpdateIndexWithSameVersion() throws IOException {
8282
String indexContent = "{\"testIndex\":{\"settings\":{\"index\":{\"creation_date\":\"1558407515699\"," +
8383
"\"number_of_shards\":\"1\",\"number_of_replicas\":\"1\",\"uuid\":\"t-VBBW6aR6KpJ3XP5iISOA\"," +
84-
"\"version\":{\"created\":\"6040399\"},\"provided_name\":\"data_test\"}},\"mapping_version\":\"1\"," +
84+
"\"version\":{\"created\":\"136217927\"},\"provided_name\":\"data_test\"}},\"mapping_version\":\"1\"," +
8585
"\"settings_version\":\"1\",\"aliases_version\":\"1\",\"mappings\":" +
8686
"{\"_doc\":{\"_meta\":{\"schema_version\":1},\"properties\":{\"name\":{\"type\":\"keyword\"}}}}}}";
8787

0 commit comments

Comments
 (0)