Skip to content

Commit

Permalink
fix(build.gradle.kts, workflows): rewind java version -> 11
Browse files Browse the repository at this point in the history
  • Loading branch information
ybelMekk committed Oct 19, 2022
1 parent 7bb8dea commit bd8f56f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- name: Checkout latest code
uses: actions/checkout@v3

- name: Set up JDK 17
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 11
distribution: 'zulu'
cache: 'gradle'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dokka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- name: Checkout latest code
uses: actions/checkout@v3

- name: Set up JDK 17
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 11
distribution: 'zulu'
cache: 'gradle'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manual_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
with:
ref: add-arm64-architecture

- name: Set up JDK 17
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 11
distribution: 'zulu'
cache: 'gradle'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- name: Checkout latest code
uses: actions/checkout@v3

- name: Set up JDK 17
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 11
distribution: 'zulu'
cache: 'gradle'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
- name: Checkout latest code
uses: actions/checkout@v3

- name: Set up JDK 17
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 11
distribution: 'zulu'
cache: 'gradle'

Expand Down
12 changes: 6 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ application {
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withJavadocJar()
withSourcesJar()
}
Expand Down Expand Up @@ -73,7 +73,7 @@ dependencies {
testImplementation("io.kotest:kotest-assertions-core-jvm:$kotestVersion") // for kotest core jvm assertions
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5:$kotlinVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
//example use with different frameworks
// example use with different frameworks
testImplementation("org.springframework.boot:spring-boot-starter-webflux:$springBootVersion")
testImplementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server:$springBootVersion")
testImplementation("org.springframework.boot:spring-boot-starter-oauth2-client:$springBootVersion")
Expand Down Expand Up @@ -188,7 +188,7 @@ jib {
os = "linux"
}
}
image = "gcr.io/distroless/java17-debian11"
image = "gcr.io/distroless/java11-debian11"
}
container {
ports = listOf("8080")
Expand Down Expand Up @@ -255,7 +255,7 @@ tasks {

withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
jvmTarget = JavaVersion.VERSION_11.toString()
}
}

Expand All @@ -274,6 +274,6 @@ tasks {
}

withType<Wrapper> {
gradleVersion = "7.5.1"
gradleVersion = "7.4.2"
}
}

0 comments on commit bd8f56f

Please sign in to comment.