Is there a simple way to publish a gradle plugin which can be resolved using plugin id in custom repository ? I don’t want to define custom resolution strategy I just want to define my repository URL in plugin configuration.
I haven’t done this myself, so this is just an idea to try.
Java Gradle Plugin Development plugin can be configured with the id that will be used for applying the plugin. When publishing, it also publishes a Plugin Marker Artifact. This marker artifact has a dependency on the actual plugin artifact. It’s group name is equal to the plugin id and the artifact name is .gradle.plugin.
Instead of writing your resolution strategy, this should rely on Gradle’s existing resolution.
If you publish this marker artifact, I assume it should work. As I said, I’ve not tried it myself, so I don’t how simple it is.