Slackbot
01/03/2024, 5:19 PMVampire
01/03/2024, 5:27 PMafterEvaluate is practically never acceptable except for very rare cases 😄Thomas Broyer
01/03/2024, 5:29 PMextension.doThis() rather than extension.configured = "this".
(you could see this similarly to useXxx() methods on a Test task: configurable once, not reconfigurable; thus imperative rather than declarative)Kelvin Chung
01/03/2024, 5:30 PMRepositoryHandler from the extension, then?Vampire
01/03/2024, 5:31 PMproject.repositories instead.Vampire
01/03/2024, 5:33 PMrepositories {
myExtension {
myRepository()
}
}
from both, Groovy DSL and Kotlin DSL.Vampire
01/03/2024, 5:34 PMProject, if not you just supply it explicitly as constructor arg to the create call.Kelvin Chung
01/03/2024, 5:42 PMRepositoryHandler is not `ExtensionAware`; would that present a problem?Vampire
01/03/2024, 5:42 PMVampire
01/03/2024, 5:43 PMExtensionAware but only the least declare it explicitly.
Even your instances, like your MyExtension instance is ExtensionAware.
I usually tend to also always declare it explicitly for my types that do not inherit it already anyway.