I'm trying to publish my plugin created through th...
# compiler
c
I'm trying to publish my plugin created through the standard compiler plugin template. Before posting it to the portal, I wanted to make a local test project with the dependencies sourced from MavenLocal. The problem is, after publishing the gradle plugin to mavenLocal, my test project can't find the plugin annotations jar. It resolves the Gradle plugin fine, but not the annotations. The template actually isn't set up to publish that jar at all, so I also tried adding the
maven-publish
plugin to
:plugin-annotations
. But that project is set up as multiplatform, so all artifacts are published as
group:plugin-annotations-platform
, not the
group:plugin-annotations
that the template is hardcoded to look for. How should you publish plugins created with the template? Does anyone know where to find a simple example of it working in practice?
✅ 1
y
I have a personal fork of the template here, which has publishing set up for everything. I use
maven-publish
as well, so I'm not sure what issue you're seeing. It seems to work fine for me locally, although I haven't used it locally in a bit.
c
That worked, thank you!
y
Out of curiosity, what was different about my setup compared to yours? Or did you just drop in the script and it magically worked lol?
c
Honestly, nothing majorly different. You had the nexus publishing plugin, code signing, and some additional author metadata in the
publishing
block, but it wasn't tremendously different. In all honesty I probably just freaked out at KMP trying to install android, and didn't let it finish publishing the extensionless artifact.
😆 1