citizenmatt
09/25/2018, 7:47 AMbuild.gradle.kts
files? I'm a complete newbie to the Kotlin DSL and struggling with getting plugins to work in a foo.gradle.kts
file, and it would be nice to see how others have done it.gildor
09/25/2018, 8:08 AMapply(from="foo.gradle.kts")
?citizenmatt
09/25/2018, 8:34 AMapply(from="foo.gradle.kts")
. I've got a lot of tasks, more so than actual logic, so I thought it was more reasonable for them to be in .gradle.kts
file(s). The samples repo shows using multiple .kts
files, but doesn't show anything about using plugins in those included files, and that's where I'm hitting unresolved symbol errorsgildor
09/25/2018, 8:35 AMcitizenmatt
09/25/2018, 9:04 AMgildor
09/25/2018, 9:06 AMplugins{}
dsl, so you cannot use any type safe API of Kotlin DSL.
There are some other ways, use buildscript or add plugins as dependencies to buildSrc (will be available in script plugins too)citizenmatt
09/25/2018, 9:17 AMbuildSrc
and whatnot. Thanks for the help!gildor
09/25/2018, 9:41 AM