Skip to content

Commit

Permalink
chore: bump target jdk for Workflows & CI to JDK 21
Browse files Browse the repository at this point in the history
  • Loading branch information
wax911 committed Jan 5, 2025
1 parent 47bc9f3 commit 3bd6774
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android-spotless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
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: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/android-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
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: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gradle-dokka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
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: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ internal fun Project.configureAndroid(): Unit = baseExtension().run {
configureLint()

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

tasks.withType(KotlinCompilationTask::class.java) {
Expand All @@ -98,6 +98,6 @@ internal fun Project.configureAndroid(): Unit = baseExtension().run {
}

kotlinAndroidProjectExtension().run {
jvmToolchain(17)
jvmToolchain(21)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ internal fun Project.configureDokka() = tasks.named<DokkaTask>("dokkaHtml") {
}

// Used for linking to JDK documentation
jdkVersion.set(17)
jdkVersion.set(21)

// Disable linking to online kotlin-stdlib documentation
noStdlibLink.set(false)
Expand Down
2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jdk:
- openjdk17
- openjdk21
#before_install:
# - ./custom_setup.sh
install:
Expand Down

0 comments on commit 3bd6774

Please sign in to comment.