Applying gradle enterprise plugin in custom plugin

Hello!

I’m writing a custom plugin to abstract most of the config away fro the gradle enterprise plugin and the buildCache extension. I’m having trouble bringing in the gradle enterprise plugin as a dependency so my plugin can apply it to the settings object. Is this not possible? Here’s my situation:

  • I’m writing a plugin implements Plugin<Settings>
  • I would like my plugin to apply and configure the gradleEnterprise plugin
  • I would like to write it in java.

How can I do this? Every method to find or apply the plugin seems to fail. I’ve tried adding the plugin as a dependency, but Gradle can’t find it in either mavenCentral or the gradlePluginPortal.