bennyhuo / Bennyhuo

bennyhuo.vercel.app
9 stars 3 forks source link

如何为 Gradle 的 KTS 脚本添加扩展? | Bennyhuo #49

Open bennyhuo opened 3 years ago

bennyhuo commented 3 years ago

https://www.bennyhuo.com/2021/04/18/Add-extensions-to-build-scripts/

本质上还是要搞清楚 KTS 是怎么运行的

hyvenzhu commented 2 years ago

如果想在 settings.gradle.kts 引用某个扩展如何解决呢?buildSrc 定义了函数 func,settings 可以引用到,但编译报错。