Skip to content

Commit d6faa88

Browse files
authored
Bumped gradle to 8.14, support JDK 24; fixed backport branch deletion (#1911)
* Bumped gradle to 8.14, support JDK 24; fixed backport branch deletion Signed-off-by: Amardeepsingh Siglani <[email protected]> * updated backward compatibility test branch Signed-off-by: Amardeepsingh Siglani <[email protected]> --------- Signed-off-by: Amardeepsingh Siglani <[email protected]>
1 parent ae6436a commit d6faa88

File tree

10 files changed

+28
-21
lines changed

10 files changed

+28
-21
lines changed

.github/workflows/delete_backport_branch.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@ on:
77
jobs:
88
delete-branch:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
1012
if: startsWith(github.event.pull_request.head.ref,'backport/')
1113
steps:
12-
- name: Delete merged branch
13-
uses: SvanBoxel/delete-merged-branch@main
14-
env:
15-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
- name: Delete merged branch
15+
uses: actions/github-script@v7
16+
with:
17+
script: |
18+
github.rest.git.deleteRef({
19+
owner: context.repo.owner,
20+
repo: context.repo.repo,
21+
ref: `heads/${context.payload.pull_request.head.ref}`,
22+
})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
needs: Get-CI-Image-Tag
1919
strategy:
2020
matrix:
21-
java: [ 21, 23 ]
21+
java: [ 21, 24 ]
2222
os:
2323
- ubuntu-24.04-arm # arm64-preview
2424
- ubuntu-24.04 # x64

.github/workflows/test-workflow.yml

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

alerting/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@ configurations {
127127
def securityEnabled = System.getProperty("security", "false") == "true" || System.getProperty("https", "false") == "true"
128128

129129
// Always be minimumCompatibilityVersion of current opensearch version(3.2.0)
130-
// get latest 2.x version from OpenSearch 2.x branch
130+
// get latest 3.x version from OpenSearch
131131
static def fetchVersionProperties() {
132-
def url = 'https://raw.githubusercontent.com/opensearch-project/OpenSearch/refs/heads/2.x/buildSrc/version.properties'
132+
def url = 'https://raw.githubusercontent.com/opensearch-project/OpenSearch/refs/heads/3.1/buildSrc/version.properties'
133133
def content = new URL(url).text
134134
// Use regex to extract the version number
135135
def matcher = content =~ /opensearch\s*=\s*(\d+\.\d+\.\d+)/
136136
if (matcher.find()) {
137137
def version = matcher.group(1)
138-
println("Extracted latest 2.x version: $version")
138+
println("Extracted latest 3.x version: $version")
139139
return version
140140
} else {
141-
return "2.19.0"
141+
return "3.1.0"
142142
}
143143
}
144144
String bwcVersionShort = fetchVersionProperties()

build-tools/merged-coverage.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
allprojects {
77
plugins.withId('jacoco') {
8-
jacoco.toolVersion = '0.8.11'
8+
jacoco.toolVersion = '0.8.13'
99
// For some reason this dependency isn't getting setup automatically by the jacoco plugin
1010
tasks.withType(JacocoReport) {
1111
dependsOn tasks.withType(Test)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ buildscript {
4040
}
4141

4242
plugins {
43-
id 'com.netflix.nebula.ospackage' version "11.5.0"
43+
id 'com.netflix.nebula.ospackage' version "12.0.0"
4444
id "com.dorongold.task-tree" version "1.5"
4545
id "de.undercouch.download" version "5.6.0"
4646
}

gradle/wrapper/gradle-wrapper.jar

181 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
3+
distributionSha256Sum=efe9a3d147d948d7528a9887fa35abcf24ca1a43ad06439996490f77569b02d1
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip
45
networkTimeout=10000
56
validateDistributionUrl=true
67
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum
@@ -115,7 +114,7 @@ case "$( uname )" in #(
115114
NONSTOP* ) nonstop=true ;;
116115
esac
117116

118-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
117+
CLASSPATH="\\\"\\\""
119118

120119

121120
# Determine the Java command to use to start the JVM.
@@ -206,15 +205,15 @@ fi
206205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
207206

208207
# Collect all arguments for the java command:
209-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
210209
# and any embedded shellness will be escaped.
211210
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
212211
# treated as '${Hostname}' itself on the command line.
213212

214213
set -- \
215214
"-Dorg.gradle.appname=$APP_BASE_NAME" \
216215
-classpath "$CLASSPATH" \
217-
org.gradle.wrapper.GradleWrapperMain \
216+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
218217
"$@"
219218

220219
# Stop when "xargs" is not available.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ goto fail
7070
:execute
7171
@rem Setup the command line
7272

73-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73+
set CLASSPATH=
7474

7575

7676
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
77+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7878

7979
:end
8080
@rem End local scope for the variables with windows NT shell

0 commit comments

Comments
 (0)