Skip to content

Commit

Permalink
Switch to Java 21 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikreuzer committed Dec 27, 2024
1 parent 0719095 commit 594ac8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v5

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'

- name: Generate versions
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0
Expand All @@ -50,10 +50,10 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ subprojects {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
freeCompilerArgs += "-Xcontext-receivers"
jvmTarget = "17"
jvmTarget = "21"
}
}

java {
sourceCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
}

val javadocJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
Expand Down

0 comments on commit 594ac8c

Please sign in to comment.