Francesc
01/02/2022, 6:33 PMapply from: "$rootDir/base_library_module.gradle"
- is there something equivalent with Kotlin DSL for build.gradle.kts
?Javier
01/02/2022, 6:34 PMFrancesc
01/02/2022, 6:36 PMapply
solution for GroovyFrancesc
01/02/2022, 6:37 PMHanno
01/02/2022, 6:38 PMFrancesc
01/02/2022, 6:45 PMBenoît Liessens
01/02/2022, 7:36 PMapply(from= “path/to/abc.gradle.kts”)
Javier
01/02/2022, 7:43 PMapply from
looks like an antipattern for meJavier
01/02/2022, 7:43 PMFrancesc
01/02/2022, 8:38 PMVampire
01/02/2022, 8:48 PMEl Zhang
01/03/2022, 1:53 AMextra["xxx"] = fun()
can be a workaround)
3. Extension Function export - N
4. Shared Dependencies - N (You need to redeclare buildScript{}
)
precompiled script plugins:
1. Type-safe accessors - Y
2. Function export - N (extra["xxx"] = fun()
can be a workaround)
3. Extension Function export - Y (fun Project.customLog(…){…}
)
4. Shared Dependencies - Y (By build.gradle.kts
of buildSrc
or a standalone project)
So it’s not an equivalent of Gradle Groovy DSL script plugin, but again “Better use precompiled script plugins” same as Vampire’s opinion.