Slackbot
12/16/2023, 11:35 AMPhilip W
12/16/2023, 11:37 AMval foos = extensions.create<Foo>("foo")
foos.s.register("a")
val a: NamedDomainObjectProvider<S> = foo.s.aPhilip W
12/16/2023, 11:38 AMUnresolved reference: aAdam
12/16/2023, 12:06 PMFoo.s is a property, but s needs to be an extension on Foo.Adam
12/16/2023, 12:07 PMabstract class Foo : ExtensionAware {
val s: NamedDomainObjectContainer<S> = extensions.create("s")
}Philip W
12/16/2023, 12:14 PMCould not create an instance of type app.softwork.kobol.gradle.Foo.
> Could not create an instance of type org.gradle.api.NamedDomainObjectContainer.
> Could not generate a decorated class for type NamedDomainObjectContainer.
> Cannot have abstract method NamedDomainObjectCollection.getAsMap().
same error when using: interface Foo: NamedDomainObjectContainer<S>Philip W
12/16/2023, 12:15 PMabstract class Foo : ExtensionAware {
abstract val s: NamedDomainObjectContainer<S>
init {
extensions.add("s", s)
}
}Philip W
12/16/2023, 12:15 PM