Skip to content

Commit

Permalink
Fix build warnings, move CI to Java 21 (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogolberg authored Oct 15, 2024
1 parent a11bae5 commit b8e8b54
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17
java-version: 21
- name: Build
run: ./gradlew check --stacktrace --no-daemon
- name: Publish locally
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17
java-version: 21
- name: Publish
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --stacktrace --no-daemon
env:
Expand Down
11 changes: 7 additions & 4 deletions buildSrc/src/main/kotlin/kotlin-conventions.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion

plugins {
id("java-conventions")
kotlin("jvm")
Expand All @@ -11,8 +14,8 @@ spotless {
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
languageVersion = "1.6"
compilerOptions {
jvmTarget = JvmTarget.JVM_11
languageVersion = KotlinVersion.KOTLIN_1_8
}
}
}

0 comments on commit b8e8b54

Please sign in to comment.