Slackbot
09/19/2023, 5:18 PMephemient
09/19/2023, 5:18 PMSam Edwards
09/19/2023, 5:22 PMephemient
09/19/2023, 5:29 PMPluginRegistry that keeps track of which plugins Gradle has seen so far, but otherwise noephemient
09/19/2023, 5:30 PMSam Edwards
09/19/2023, 5:35 PMorg.gradle.api.internal.plugins.PluginRegistry is under the .internal. package, but how do I programatically get an instance of it? I see a constructor, but not sure how I'd get the constructor args for public DefaultPluginRegistry(PluginInspector pluginInspector, ClassLoaderScope classLoaderScope)Vampire
09/19/2023, 6:41 PMMETA-INF/gradle-plugins/...properties files and read them, then you have the id -> class mappings and can build a class -> possible ids mapping.
But as @ephemient said, it could also be that a plugin has no ID but is only applied by class and you also don't know in which way the plugin was actually applied.Sam Edwards
09/19/2023, 6:43 PMVampire
09/19/2023, 6:43 PMephemient
09/19/2023, 6:44 PMephemient
09/19/2023, 6:46 PMephemient
09/19/2023, 6:46 PMVampire
09/19/2023, 6:47 PMVampire
09/19/2023, 6:47 PMephemient
09/19/2023, 6:48 PMephemient
09/19/2023, 6:48 PMSam Edwards
09/19/2023, 6:58 PMVampire
09/19/2023, 7:31 PMephemient
09/19/2023, 7:33 PMephemient
09/19/2023, 7:33 PMSam Edwards
09/19/2023, 7:38 PMMETA-INF/gradle-plugins/my-plugin.properties will exist, and it will refer to the fully qualified plugin class. Therefore they are explicitly able to look it up from the classloader. 🤔 So maybe there really isn't a need.ephemient
09/19/2023, 7:39 PMVampire
09/19/2023, 7:40 PMephemient
09/19/2023, 7:45 PMSam Edwards
09/19/2023, 8:19 PMVampire
09/19/2023, 8:20 PMVampire
09/19/2023, 8:20 PMVampire
09/19/2023, 8:20 PM