Skip to content

Commit

Permalink
Add Java17 container to build job in GHA (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainkarafallah authored Sep 10, 2024
1 parent 69b3995 commit db693e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ jobs:

build:
name: "Build and Test"
container:
image: azul/zulu-openjdk:17
runs-on:
- ubuntu-latest
needs: matrix_build
Expand Down
20 changes: 3 additions & 17 deletions build.common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,8 @@ dependencies {
}

java {
if (springBootVersion.startsWith("2.")) {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
} else {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
withJavadocJar()
}
Expand All @@ -118,18 +113,9 @@ compileJava {
options.compilerArgs << '-Xlint:-processing'
}

compileTestJava {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(17)
}
}

test {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(17)
}


testLogging {
events TestLogEvent.STARTED, TestLogEvent.FAILED, TestLogEvent.SKIPPED, TestLogEvent.PASSED,
Expand Down

0 comments on commit db693e8

Please sign in to comment.