IDEA is unable to parse the file and highlights everything in red. Running a gradle task from the terminal works fine though. When I remove the import statements and put the
plugins
block at the top, the script is parsed correctly but the unimported classes cannot be resolved.
Am I doing this incorrectly or is this an IDEA bug?
m
mike.holler
10/12/2020, 6:39 PM
I do this all the time, with the latest versions of IntelliJ, Gradle (kotlin script), Kotlin, and JDK 11.
s
sultanofcardio
10/12/2020, 7:58 PM
I'm using JDK 1.8 and was using IntelliJ 2020.2.2 (just updated). I found workarounds that don't require imports for the time being