This message was deleted.
# plugin-development
s
This message was deleted.
e
you shouldn't do it that way. at the time your plugin code is executing, Gradle has already determined the buildscript classpath, it's too late to add to it
📝 1
instead, add that plugin as an ordinary runtime dependency to yours, and then you can apply it either by type or by name
for example, in your plugin's build script
Copy code
dependencies {
    implementation("plugin-id:plugin-id.gradle.plugin:version")
}
and implementation
Copy code
pluginManager.apply<Plugin>() // or
pluginManager.apply("plugin-id")
j
Aha...🫢 Thanks for the sweet reply! 🥰