Could not find method kotlinCompilerPluginClasspathDebug() for arguments [project ':my-kcp-plugin'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Anyone face the same issue? I have a workaround but above is much elegant if it's working.
v
Vampire
06/30/2023, 6:48 AM
Make sure it is created before you try to use it. Order matters!
s
statmark56
06/30/2023, 8:02 AM
Hi Bjorn,
Thanks for your reply.
But could you elaborate a bit what "it" is to be created and what "order" we're talking here?
v
Vampire
06/30/2023, 8:59 AM
It is "Björn" or "Bjoern", not "Bjorn". 😉
"it" means the configuration called
kotlinCompilerPluginClasspathDebug
on which you try to declare a dependency.
"order" means that whatever triggers this configuration to be created has to come before you try to add a dependency, otherwise you try to add a dependency to something that does not exist yet.