Gradle has extension `kotlinCompilerPluginClasspat...
# gradle
s
Gradle has extension
kotlinCompilerPluginClasspath[Variant]
. But when I apply
kotlinCompilerPluginClasspathDebug project (":my-kcp-plugin")
it returns error:
Copy code
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
Make sure it is created before you try to use it. Order matters!
s
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
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.
s
Ok.. very helpful 😅