Skip to content

Commit c6ccaf7

Browse files
committed
ci: test against latest Java versions
1 parent 8fb3692 commit c6ccaf7

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ main ]
66
pull_request:
77

88
jobs:
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
java-version: [ 8, 11, 16 ]
15+
java-version: [ 8, 11, 17, 21, 23 ]
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/setup-java@v4
3131
with:
3232
java-version: ${{ matrix.java-version }}
33-
distribution: adopt
33+
distribution: temurin
3434
- name: Prepare
3535
run: ./gradlew clean dependencies
3636
- name: Build

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
restore-keys: |
2222
gradle-${{ runner.os }}
2323
gradle-
24-
- name: Set up JDK 11
24+
- name: Set up JDK 21
2525
uses: actions/setup-java@v4
2626
with:
27-
java-version: 11
28-
distribution: adopt
27+
java-version: 21
28+
distribution: temurin
2929
- name: Prepare
3030
run: ./gradlew clean dependencies
3131
- name: Assemble Artefacts
@@ -58,11 +58,11 @@ jobs:
5858
restore-keys: |
5959
gradle-${{ runner.os }}
6060
gradle-
61-
- name: Set up JDK 11
61+
- name: Set up JDK 21
6262
uses: actions/setup-java@v4
6363
with:
64-
java-version: 11
65-
distribution: adopt
64+
java-version: 21
65+
distribution: temurin
6666
- name: Prepare
6767
run: ./gradlew clean dependencies
6868
- name: Generate Documentation

.sdkmanrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Enable auto-env through the sdkman_auto_env config
2+
# Add key=value pairs of SDKs to use below
3+
java=23.0.2-tem

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ tasks.withType<DokkaTask> {
7373
dokkaSourceSets.named("main") {
7474
sourceLink {
7575
localDirectory.set(file("src/main/kotlin"))
76-
remoteUrl.set(uri("https://github.com/$githubRepository/blob/master/src/main/kotlin").toURL())
76+
remoteUrl.set(uri("https://github.com/$githubRepository/blob/main/src/main/kotlin").toURL())
7777
remoteLineSuffix.set("#L")
7878
}
7979
}

0 commit comments

Comments
 (0)