This message was deleted.
# plugin-development
s
This message was deleted.
v
I can hardly guess what your setup is as you don't show what you have. But I guess you should simply configure the publications added by the plugin instead of adding own publications.
updated the main build file with
Copy code
val publicationName = if (currentProject.name == "graphql-kotlin-gradle-plugin") {
  "mavenPlugin"
} else {
  "mavenJava"
}
so it picks the right name
v
Well, using
subprojects { ... }
is evil, but you probably know that. But well, it is like I said. With the "wrong" name you try to add a second publication for the same coordinates. With the "correct" name you try to add a second publication with the same name and for the same coordinates. For the plugin project do not try to create a new publication but configure the one that gets added by the plugin as I already said. 🙂
d
yeah need to update the build to buildSrc one of those days
For the plugin project do not try to create a new publication but configure the one that gets added by the plugin as I already said. 🙂
this is automatically added by the gradle plugin publish vs reusing the same one
guess in the subprojects i can only create maven project if not gradle plugin
v
Yes, that's exactly what I said two times already. Do not try to create a new one, but configure the one that is added by the plugin.
👍 1
yeah need to update the build to buildSrc one of those days
Actually, I would right away use an included build instead. 🙂
1