Skip to content

Commit 1dc74c4

Browse files
authored
Upgrade java and kotlin (#293)
* Upgrade Kotlin/Java * Github Actions upgrades
1 parent 8255d8e commit 1dc74c4

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ jobs:
1212

1313
steps:
1414
- name: Checkout Main AoC code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v6
1616

1717
- name: Checkout the AoC Input files
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v6
1919
with:
2020
token: ${{ secrets.AOC_INPUT }}
2121
repository: peckb1/advent-of-code-input
2222
path: advent-of-code-input
2323
ref: main
2424

2525
- name: Bring in the gradle wrapper running the build
26-
uses: gradle/wrapper-validation-action@v1
26+
uses: gradle/wrapper-validation-action@v3
2727

28-
- name: Set up JDK 17
29-
uses: actions/setup-java@v3
28+
- name: Set up JDK 21
29+
uses: actions/setup-java@v5
3030
with:
31-
java-version: 17
31+
java-version: 21
3232
distribution: 'temurin'
3333

3434
- name: Grant execute permission for gradlew
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Add coverage to PR
4747
id: jacoco
48-
uses: madrapps/jacoco-report@v1.3
48+
uses: madrapps/jacoco-report@v1.7.2
4949
with:
5050
paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml
5151
token: ${{ secrets.GITHUB_TOKEN }}

build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
22

33
java {
4-
sourceCompatibility = JavaVersion.VERSION_17
5-
targetCompatibility = JavaVersion.VERSION_17
4+
sourceCompatibility = JavaVersion.VERSION_21
5+
targetCompatibility = JavaVersion.VERSION_21
66
}
77

88
kotlin {
9-
jvmToolchain(17)
9+
jvmToolchain(21)
1010
}
1111

1212
plugins {
13-
kotlin("jvm") version "1.9.22"
14-
id("com.google.devtools.ksp") version "1.9.22-1.0.16"
13+
kotlin("jvm") version "2.2.0"
14+
id("com.google.devtools.ksp") version "2.2.20-2.0.4"
1515
application
1616
jacoco
1717
}

0 commit comments

Comments
 (0)