I want to create a Gradle plugin to simplify the creation of the project for Spigot plugin using mappings, I already have all the necessary tasks, however I do not know how to do that when applying the plugin to the project to add remapped-mojang dependency from mavenLocal() and if it has not yet been created then execute the task of launching BuildTools first
I tried adding add dependency addition to doLast, but it didn't work. I want to know if this is possible, and also how I can run a task when adding a plugin to a project