This message was deleted.
# community-support
s
This message was deleted.
r
Copy code
tasks.register("foobar", FooBar) { task ->
  // Code completion does NOT work on these cases because
  // it's not aware of delegate
  foo = "bar"
  foo.set("bar")
  // Code completion does NOT work here because it's not
  // aware of Gradle decorator for abstract task property
  task.foo = "bar" 
  // Code completion work here, but syntax is not simple
  task.foo.set("bar")
}
💡 1
v
My recommendation is, use Kotlin DSL instead. You gain several things, amongst them type-safe build scripts, much better error messages if you mix up the syntax, and amazingly better IDE support.
❤️ 3
👍 2
r
Good suggestion. It will just take some time to migrate 108,385 lines of Gradle scripts 🫠
😲 1
🙃 2
v
Doesn't have to be a big bang, they work perfectly side by side
☝️ 2