Thomas Keller
01/20/2025, 2:28 PMgradle/kotlin/dsl/accessors
, in total more than 900 files totalling about 4,2 MB uncompressed. Because I want to keep my upload / consumption times low I wonder if I could tell Gradle to not generate these accessors for my build convention plugins? Or is there some smart way of telling Gradle to only package those accessors that are actually used?Martin
01/20/2025, 2:33 PMkotlin-dsl
plugin? If yes, might be worth using just embedded-kotlin
?Vampire
01/20/2025, 2:42 PMkotlin-dsl
plugin, preserving some of the benefits like sam-with-receiver plugin, property assignment plugn, kotlinDsl()
dependency, ...
But as for those classes no accessors are generated, ...Vladimir Sitnikov
01/22/2025, 7:28 PMVampire
01/22/2025, 9:11 PMThomas Keller
01/23/2025, 9:35 AMkotlin-dsl
plugin will trigger the creation of the accessors and this is not configurable with the kotlin-dsl
plugin (I guess it might even be it's main purpose). So, again, if I don't apply kotlin-dsl
, do I (just) have to specify implementation(kotlinDsl())
in my plugin's dependency block?Vampire
01/23/2025, 9:39 AMkotlin-dsl
plugin.
If you do not want accessors, do not use precompiled script plugins.
You can keep using the kotlin-dsl
plugin to have the other aspects it is doing.
The point is to stop using precompiled Kotlin DSL script plugins.Vampire
01/23/2025, 9:40 AM.kt
plugins or any other JVM language.Thomas Keller
01/23/2025, 9:41 AMVampire
01/23/2025, 9:43 AMgradlePlugin { plugins { ... } }
unless you find something that provides a different way. I mean to remember that there was some thing to generate it from an annotation, but I don't remember the details.Nicklas Ansman
01/26/2025, 1:16 AMNicklas Ansman
01/26/2025, 1:17 AMVladimir Sitnikov
01/26/2025, 4:31 PM