https://kotlinlang.org logo
Title
p

pniederw

01/22/2019, 1:16 AM
my build has some "discoverMainScriptsExtensions" tasks (presumably added by Kotlin plugin) that are never UP-TO-DATE. what are those, and how can I get rid of them?
a

Alexey Belkov [JB]

01/22/2019, 8:32 AM
p

pniederw

01/22/2019, 10:34 AM
@Alexey Belkov [JB] can these configuration tasks be made opt-in? I suspect most users won't ever need them because they don't use kotlin scripting (which is what I suppose this is about).
50 additional tasks in my build (25 subprojects * 2) is a lot of unnecessary noise.
a

Alexey Belkov [JB]

01/22/2019, 10:38 AM
Have you tried 1.3.20 EAP https://discuss.kotlinlang.org/t/kotlin-1-3-20-early-access-preview/10748 ? Is it still a problem there?
p

pniederw

01/22/2019, 10:42 AM
I haven't tried it, but the issue suggests you fixed the up-to-date check, which means that in the best case, I'll still get 50 times "discoverXYZ UP-TO-DATE" cli output every time I run my build, even though I'm not using Kotlin scripting at all.
Until I searched the Kotlin plugin source code, I had no idea where these tasks were coming from and what they were doing. It's pure noise from my perspective.
Configuration tasks are a common workaround when using third-party legacy tasks, but I think the Kotlin plugin should be able to do better.
e.g., I'm not aware of any use of configuration tasks in Gradle's own plugins.
a

Alexey Belkov [JB]

01/22/2019, 10:54 AM
Ok, I just check it, on 1.3.20 EAP there is no mention of this task with command
./gradlew clean build -i
. Seems like it shouldn't be a problem. If it is, please file a new issue at http://kotl.in/issue. Thanks!
p

pniederw

01/22/2019, 10:55 AM
sounds like you did eliminate them after all. I'll give it a try. thanks!