Matt Kessler
07/17/2025, 12:25 PMMatt Kessler
07/17/2025, 12:25 PMMatt Kessler
07/17/2025, 12:25 PMMatt Kessler
07/17/2025, 12:26 PMBuild system
in my current project. First question, after a project is created, is there a way to to see what you've chosen and switch it (i.e. from IntelliJ to Gradle)?Matt Kessler
07/17/2025, 12:27 PMMatt Kessler
07/17/2025, 12:30 PMMatt Kessler
07/17/2025, 12:32 PMBuild system
(which again I think I picked IntelliJ).CLOVIS
07/17/2025, 12:57 PMCLOVIS
07/17/2025, 12:59 PMgradle init
which will give you a different wizardKlitos Kyriacou
07/17/2025, 1:21 PM.gradle
directory, then you've probably created the project with Gradle.AndreyVanDenHaag
07/17/2025, 1:57 PMCLOVIS
07/17/2025, 2:21 PMCLOVIS
07/17/2025, 2:22 PMKlitos Kyriacou
07/17/2025, 2:23 PMCLOVIS
07/17/2025, 2:24 PMCLOVIS
07/17/2025, 2:24 PMMatt Kessler
07/17/2025, 2:31 PMBuild system
so it sounds like I need to start a new project using Gradle on that front. That should be easy enough. It would still be nice if IDEA gave you any easy way to switch after project creation.AndreyVanDenHaag
07/17/2025, 2:35 PMKlitos Kyriacou
07/17/2025, 3:52 PMMatt Kessler
07/18/2025, 12:14 PMBuild system: Gradle
. I also had the Add sample code
checkbox selected.
With no changes to the sample code, I simply tried to build but got...
Inconsistent JVM-target compatibility detected for tasks 'compileJava' (24) and 'compileKotlin' (23).
A bit of searching told me that I had to add this to build.gradle.kts...
kotlin {
jvmToolchain(24)
}
...which I did but rebuilding leads me to the same exact error. Thoughts?Klitos Kyriacou
07/18/2025, 12:32 PMCLOVIS
07/18/2025, 12:36 PMA bit of searching told me that I had to add this to build.gradle.kts...Are there multiple
build.gradle.kts
files? This should solve the problemMatt Kessler
07/18/2025, 3:07 PMMatt Kessler
07/18/2025, 3:07 PMMatt Kessler
07/18/2025, 3:08 PMCLOVIS
07/18/2025, 3:14 PMMatt Kessler
07/19/2025, 11:28 AMMatt Kessler
07/19/2025, 11:29 AMMatt Kessler
07/19/2025, 11:43 AMProcess finished with exit code 0
CLOVIS
07/19/2025, 1:23 PMCLOVIS
07/19/2025, 1:24 PM