Can a subclass of `KotlinCompilerPluginSupportPlug...
# gradle
e
Can a subclass of
KotlinCompilerPluginSupportPlugin
be used as a local
buildSrc
plugin?
t
yes, why not
e
@tapchicoma thank you, just wanted to be sure!
@tapchicoma I had a go and tried the local plugin, which I then applied with
Copy code
plugins {
  id("myPlugin")
}
However, I get a
Copy code
Failed building KotlinMPPGradleModel
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':faproto:kotlinCompilerPluginClasspathJsTest'
With a cause of
Copy code
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.my.company:myplugin:0.0.1.
This is the initial part of my plugin
Copy code
class MyPlugin : KotlinCompilerPluginSupportPlugin {
  override fun getCompilerPluginId() =
    "com.my.company.myplugin"

  override fun getPluginArtifact() =
    SubpluginArtifact(
      groupId = "com.my.company",
      artifactId = "myplugin",
      version = "0.0.1",
    )

    ...
Looks like it tried to look for the plugin in Maven Central, but obviously it's under
buildSrc
, so