Kelvin Chung
07/10/2024, 12:39 AMplugins {
id("third.party.plugin") // declares an extension 'myExtension'
}
myExtension.myProperty.set("foobar")
If I include some other plugin, like so:
plugins {
id("third.party.plugin")
id("my.other.plugin")
}
myExtension.myProperty.set("foobar")
Under some conditions (that I have yet to suss out), Gradle will flag myExtension as not existing. Is there a reason why that would be, and would it depend on this plugin my.other.plugin that I'm adding?Vampire
07/10/2024, 6:38 AMVampire
07/10/2024, 6:39 AMVampire
07/10/2024, 6:42 AMplugins block is transplanted to a dummy project, which is then investigated for extensions the block caused to be added and for those accessors are generated. If during this a plugin causes failure, no accessors are generated, you should report a bug to that plugin, and as workaround need to apply it the legacy way. You can still use the plugins block with "apply false" to bring it to the classpath and then apply it with "apply(...)".Kelvin Chung
07/10/2024, 4:59 PMgeneratePrecompiledScriptPluginAccessors seems like it would be a chicken-and-egg thing.Vampire
07/10/2024, 5:23 PMKelvin Chung
07/10/2024, 6:56 PMgeneratePrecompiledScriptPluginAccessors but the task didn't actually fail. (It could be my older version of Gradle, but I'm heading somewhere.)Vampire
07/10/2024, 7:26 PMKelvin Chung
07/11/2024, 10:46 PMVampire
07/12/2024, 7:28 AM