Skip to content

Commit 73db823

Browse files
committed
build: Make the UP-TO-DATE work-around function with IntelliJ 2026.1
For some reason using `doNotTrackState` stopped working, so explicitly never allow the task to be UP-TO-DATE. Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
1 parent 4f5c8f8 commit 73db823

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

buildSrc/src/main/kotlin/ort-kotlin-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ tasks.withType<JavaExec>().configureEach {
145145

146146
// Work around https://youtrack.jetbrains.com/issue/KTIJ-34755.
147147
if (normalizedName.endsWith("main") || normalizedName.endsWith("run")) {
148-
doNotTrackState("Interactive Java execution tasks are never supposed to be UP-TO-DATE.")
148+
outputs.upToDateWhen { false }
149149
}
150150
}
151151

0 commit comments

Comments
 (0)