Custom gradle task that accesses top-level fails with “The constructor … should be annotated with @Inject”

后端 未结 0 1226
眼角桃花
眼角桃花 2020-12-18 23:18

I\'m trying to create a re-usable gradle task that accesses something from the top level. This works:

val foo = 42

tasks.register("foosimple") {
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题