diff --git a/.github/workflows/anchore.yml b/.github/workflows/anchore.yml index 49f529e52..71677b6dc 100644 --- a/.github/workflows/anchore.yml +++ b/.github/workflows/anchore.yml @@ -11,11 +11,11 @@ jobs: steps: - name: Checkout project uses: actions/checkout@v4 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: '17' + java-version: '21' - name: Assemble project uses: gradle/gradle-build-action@v2 with: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 722bd9afd..07721d2a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,11 +17,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: '17' + java-version: '21' cache: 'gradle' - name: Cache SonarCloud packages uses: actions/cache@v3 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 418429212..6c46f921b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -31,11 +31,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: '17' + java-version: '21' # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/build.gradle.kts b/build.gradle.kts index ea09788b2..b399f95c5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,3 @@ - import com.google.cloud.tools.jib.gradle.PlatformParameters import io.gitlab.arturbosch.detekt.Detekt import io.gitlab.arturbosch.detekt.DetektCreateBaselineTask @@ -42,7 +41,7 @@ subprojects { apply(plugin = "io.gitlab.arturbosch.detekt") apply(plugin = "jacoco") - java.sourceCompatibility = JavaVersion.VERSION_17 + java.sourceCompatibility = JavaVersion.VERSION_21 the().apply { imports { @@ -88,7 +87,7 @@ subprojects { tasks.withType { kotlinOptions { freeCompilerArgs = listOf("-Xjsr305=strict", "-opt-in=kotlin.RequiresOptIn") - jvmTarget = "${JavaVersion.VERSION_17}" + jvmTarget = "${JavaVersion.VERSION_21}" } } tasks.withType { diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index bdc9a83b1..744c64d12 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists