ursus
12/17/2025, 3:14 PMkotlin {
jvmToolchain(25)
compilerOptions {
jvmTarget.set(JvmTarget.JVM_25)
}
}
kotlin = "2.3.0"
jetbrains-compose = "1.10.0-rc02"
`./gradlew build`seems to build fine
but running it via IDE
gives me
> Task :foo.bar.MainKt.main() FAILED
Error: LinkageError occurred while loading main class foo.bar.MainKt
Error: LinkageError occurred while loading main class foo.bar.MainKt
java.lang.UnsupportedClassVersionError: foo/bar/MainKt has been compiled by a more recent version of the Java Runtime (class file version 69.0), this version of the Java Runtime only recognizes class file versions up to 65.0
Execution failed for task ':foo.bar.MainKt.main()'.
> Process 'command '/Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
Why? Is IDEA 2025.3 not enough?jw
12/17/2025, 3:18 PMursus
12/17/2025, 3:19 PMjw
12/17/2025, 3:20 PMursus
12/17/2025, 3:24 PMjw
12/17/2025, 3:29 PMursus
12/17/2025, 3:30 PMursus
12/17/2025, 3:31 PM./gradlew run launches the ui just fine (what the App run config is supposed to do but I guess its not using gradle)ursus
12/17/2025, 3:33 PM./gradlew clean packageReleaseUberJarForCurrentOS
> Task :proguardReleaseJars FAILED
ProGuard, version 7.7.0
Unexpected error
java.io.IOException: Can't read [/Users/foo/IdeaProjects/gbar/build/libs/GitGooey.jar] (Can't process class [gitgooey/generated/resources/ActualResourceCollectorsKt.class] (Unsupported version number [69.0] (maximum 68.65535, Java null)))
at proguard.InputReader.readInput(InputReader.java:282) ~[proguard-base-7.7.0.jar:7.7.0]
at proguard.InputReader.readInput(InputReader.java:229) ~[proguard-base-7.7.0.jar:7.7.0]ursus
12/17/2025, 3:34 PMjw
12/17/2025, 3:35 PMjw
12/17/2025, 3:36 PMursus
12/17/2025, 3:36 PMkotlin {
jvmToolchain(25)
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
which is I think is this
then I get
Execution failed for task ':compileKotlin'.
> Inconsistent JVM Target Compatibility Between Java and Kotlin Tasks
Inconsistent JVM Target Compatibility Between Java and Kotlin Tasks
Inconsistent JVM-target compatibility detected for tasks 'compileJava' (25) and 'compileKotlin' (21).ursus
12/17/2025, 3:37 PMYou only need to run on 25 for the performance gains.so even
jvmToolchain(X) doesnt matter?jw
12/17/2025, 3:38 PMjw
12/17/2025, 3:38 PMursus
12/17/2025, 3:41 PMjava {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
like this? thats it?jw
12/17/2025, 3:41 PMursus
12/17/2025, 3:43 PMjw
12/17/2025, 3:43 PMjw
12/17/2025, 3:44 PMjw
12/17/2025, 3:44 PMursus
12/17/2025, 3:45 PMjw
12/17/2025, 3:47 PMursus
12/17/2025, 3:52 PMursus
12/17/2025, 3:52 PMCan't read [/Library/Java/JavaVirtualMachines/zulu-25.jdk/Contents/Home/jmods/java.security.sasl.jmod(;;;;;;;!**.jar;!module-info.class)] (Can't process class [com/sun/security/sasl/ClientFactoryImpl.class]
(Unsupported version number [69.0] (maximum 68.65535, Java null)))
guess I have to figure out where is the proguard version coming from