Slackbot
08/17/2023, 4:06 PMVampire
08/17/2023, 4:14 PMabstract class Foo {
fun bar() {
println("bar")
}
}
f
(repositories as ExtensionAware).extensions.create<Foo>("foo")
then you can do downstream for example:
repositories {
foo.bar()
}
or
repositories {
foo {
bar()
}
}
and in both, Groovy DSL and Kotlin DSLJames
08/22/2023, 5:30 PMJames
08/22/2023, 5:34 PMVampire
08/22/2023, 6:22 PMVampire
08/22/2023, 6:22 PMVampire
08/22/2023, 6:23 PMJames
08/22/2023, 9:21 PMVampire
08/22/2023, 9:43 PMI am already using IntelliJ Ultimate and not getting completions for itYes, what I said. You will not get completions which is why Kotlin DSL is so much better. You can research about GDSL files and whether they might maybe work. But honestly, the better invest would be to make those sceptics die. 😄
Vampire
08/22/2023, 9:44 PMVampire
08/22/2023, 9:45 PM