Skip to content

Commit

Permalink
Use java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
pboos committed Nov 25, 2024
1 parent 6f781d6 commit c0ff643
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
distribution: temurin
java-version: 21
- name: Validate Gradle wrapper
uses: gradle/[email protected]
- name: Checkstyle
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
distribution: temurin
java-version: 21
- name: Validate Gradle wrapper
uses: gradle/[email protected]
- name: Build sourcesJar and javadocJar
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repository-maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Setup Java
with:
distribution: temurin
java-version: 17
java-version: 21
- name: Generate and submit dependency graph
uses: gradle/actions/[email protected]
with:
Expand Down
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ plugins {
alias(libs.plugins.nexus.publish)
}

def javaVersion = providers.environmentVariable("JAVA_BUILD_VERSION").getOrElse("17")

apply from: "${rootDir}/gradle/publish-root.gradle"

allprojects {
Expand All @@ -14,7 +12,7 @@ allprojects {

java {
toolchain {
languageVersion = JavaLanguageVersion.of(javaVersion)
languageVersion = JavaLanguageVersion.of(libs.versions.java.get())
}
}

Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[versions]
java = "21"
spring-boot = "3.3.5"
spring-dependency-management = "1.1.6"
openapi-generator = "7.9.0"
Expand Down

0 comments on commit c0ff643

Please sign in to comment.