Sebastian Schuberth
09/19/2022, 6:11 PMkotlinScriptDef
and kotlinScriptDefExtensions
Gradle configurations, and which to use when?Sebastian Schuberth
09/20/2022, 7:19 AMilya.chernikov
09/23/2022, 12:01 PMkotlinScriptDef
is a configuration that could be used to discover script definitions for compiling sources that include custom scripts. This configuration is provided and handled by the kotlin gradle plugin.
I don't know whether it is handled properly on Import to intelliJ, but looking at the stacktrace from the issue, it seems that the attempt to instantiate the definition is made, so the definition is discovered. Maybe something is missing in the classpath.ilya.chernikov
09/23/2022, 12:03 PMkotlinScriptDefExtensions
is. It is defined in the gradle (kotlin-dsl) itself, but I see no documentation, and the purpose is not immediately clear from the source code. Maybe better asking Gradle gous about it.Sebastian Schuberth
09/23/2022, 12:12 PMthat could be usedCan you clarify on the "could" bit? When does it have to be used? I.e., am I supposed to used it even if the script definitions already are in the
implementation
configuration?ilya.chernikov
09/26/2022, 2:14 PMkotlinScriptDef
.