Skip to content

Commit 9056e5e

Browse files
committed
Use java toolchain version 21, ignore out directory
This fixes the build when running the tests with IntelliJ IDEA's internal build tool.
1 parent 3bd46e0 commit 9056e5e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
!.idea/fileTemplates
55
.kotlin/
66
build
7+
out
78
src/main/resources/**/*.txt
89
!src/main/resources/2024/Day99.txt
910
local.properties

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ dependencies {
1919
testImplementation("com.github.stefanbirkner:system-lambda:1.2.1")
2020
}
2121

22+
java {
23+
toolchain {
24+
languageVersion = JavaLanguageVersion.of(21)
25+
}
26+
}
27+
2228
tasks {
2329
wrapper {
2430
gradleVersion = "8.11.1"

0 commit comments

Comments
 (0)