I’m developing a custom plugin that needs some configuration. Projects provision this configuration through an extension, which is convenient
// app/build.gradle.kts
myPlugin {
defaultOutputDir(layout.buildDirectory.get().dir("generated/source/ble/"))
// more config
onConfigurationFinished()
}
I had to add the line onConfigurationFinished()
or the tasks would some times see an extension missing some fields, but I’m certain there must be a better way to do this.
This topic is a very similar question, but it dates back to 2018. Has something new been introduced since then?
Thanks in advance!