~I know that `The request for this plugin could no...
# plugin-development
r
I know that
The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version
is usually solved by adding
apply false
in the root project, but does anyone know how to fix it when using
org.gradle.testkit.runner.GradleRunner
. If I have a convention plugin for the root project, convention plugins for sub projects and use
.withPluginClasspath()
I'm unable to solve the error
nevermind, my test project was applying convention plugins from a version catalog which defined an explicit library. If I change all usages of
alias(libs.plugins.convention)
with
id(libs.plugins.convention.get().pluginId)
it works
But the former does apparently work when there's no plugins applied in the root project.