Slackbot
07/28/2022, 7:07 PMVampire
07/28/2022, 7:12 PMDariusz Kuc
07/28/2022, 7:13 PMDariusz Kuc
07/28/2022, 7:13 PMDariusz Kuc
07/28/2022, 7:14 PMval publicationName = if (currentProject.name == "graphql-kotlin-gradle-plugin") {
"mavenPlugin"
} else {
"mavenJava"
}
so it picks the right nameVampire
07/28/2022, 7:18 PMsubprojects { ... }
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. 🙂Dariusz Kuc
07/28/2022, 7:18 PMDariusz Kuc
07/28/2022, 7:19 PMFor 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
Dariusz Kuc
07/28/2022, 7:19 PMVampire
07/28/2022, 7:20 PMVampire
07/28/2022, 7:20 PMyeah need to update the build to buildSrc one of those daysActually, I would right away use an included build instead. 🙂