Slackbot
10/24/2022, 8:01 AMVampire
10/24/2022, 10:21 AMusingindeed is your main or sole problem if I got it right. Editing Gradle DSL build scripts in IntelliJ is still the only case where using theinstead of.gradle
for the scripts involved might also make a difference.gradle.kts
-all
distribution instead of -bin
is helpful, but only while editing the build scripts. There the source is included and you can navigate and complete better. This is just a work-around for a still unsolved IntelliJ shortcoming actually for which a ticket in YouTrack exists.
With Kotlin DSL build scripts it is different as there the source is automatically downloaded if necessary on first IDE sync.Jendrik Johannes
10/24/2022, 3:42 PM.gradle.kts
script to the project (that is usually only based on Groovy scripts). That triggered the -src
download on next sync 𤯠and afterwards the navigation worked. Also from the Java classes in all the subprojects.
I wonder if I can configure that manually somehow without having to add the .gradle.kts
script⦠?Jendrik Johannes
10/24/2022, 3:43 PMJendrik Johannes
10/24/2022, 3:43 PMVampire
10/24/2022, 3:47 PMtony
10/24/2022, 4:36 PMVampire
10/24/2022, 4:49 PMJendrik Johannes
10/24/2022, 8:07 PMVampire
10/24/2022, 9:20 PMdaniel
11/09/2022, 11:31 PMProjectInternal#evaluate()
in a unit test but it works great. Note that you should use compileOnly
or compileOnlyApi
given the library should run in an environment where the Gradle runtime is provided.