Skip to content

Commit

Permalink
Set baseline JDK version to JDK-21 (#1228)
Browse files Browse the repository at this point in the history
* Set baseline JDK version to JDK-21

Signed-off-by: Daniel Widdis <[email protected]>

* Update JDK version in maven-publish workflow

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis authored Jun 14, 2024
1 parent 60f99ab commit 3f0fc8c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: temurin # Temurin is a distribution of adoptium
java-version: 17
java-version: 21
- uses: actions/checkout@v4
- uses: aws-actions/[email protected]
with:
Expand All @@ -35,4 +35,4 @@ jobs:
export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
echo "::add-mask::$SONATYPE_USERNAME"
echo "::add-mask::$SONATYPE_PASSWORD"
./gradlew publishPluginZipPublicationToSnapshotsRepository
./gradlew publishPluginZipPublicationToSnapshotsRepository
9 changes: 4 additions & 5 deletions .github/workflows/test_build_multi_platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Spotless requires JDK 17+
- uses: actions/setup-java@v4
with:
java-version: 17
java-version: 21
distribution: temurin
- name: Spotless Check
run: ./gradlew spotlessCheck
Expand All @@ -30,7 +29,7 @@ jobs:
needs: spotless
strategy:
matrix:
java: [ 11, 17, 21 ]
java: [ 21 ]
name: Build and Test Anomaly Detection Plugin on Windows
runs-on: windows-latest
env:
Expand Down Expand Up @@ -63,7 +62,7 @@ jobs:
needs: [Get-CI-Image-Tag, spotless]
strategy:
matrix:
java: [11, 17, 21]
java: [21]
fail-fast: false
name: Build and Test Anomaly detection Plugin
runs-on: ubuntu-latest
Expand Down Expand Up @@ -104,7 +103,7 @@ jobs:
needs: spotless
strategy:
matrix:
java: [11,17,21]
java: [21]
fail-fast: false

name: Build and Test Anomaly detection Plugin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_bwc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
needs: Get-CI-Image-Tag
strategy:
matrix:
java: [11,17,21]
java: [21]
fail-fast: false

name: Test Anomaly detection BWC
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
Build-ad:
strategy:
matrix:
java: [11,17,21]
java: [21]
fail-fast: false

name: Security test workflow for Anomaly Detection
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ allprojects {
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_21
sourceCompatibility = JavaVersion.VERSION_21
}

ext {
Expand Down

0 comments on commit 3f0fc8c

Please sign in to comment.