Slackbot
06/07/2022, 3:07 PMVampire
06/07/2022, 3:22 PMgradle.publish.key
and gradle.publish.secret
for your account in your user gradle.properties
. If you publish with these credentials, you publish with your account and your account knows your E-Mail address.Martin
06/07/2022, 3:34 PMMartin
06/07/2022, 3:35 PM> Failed to post to server.
Server responded with:
Group id must not start with 'gradle.plugin'
Plugin id 'net.mbonnin.sjmp' and group id 'gradle.plugin.net.mbonnin.sjmp' must use same top level namespace, like 'gradle.plugin' or 'net.mbonnin'
Martin
06/07/2022, 3:37 PMVampire
06/07/2022, 3:41 PMMartin
06/07/2022, 3:44 PMVampire
06/07/2022, 3:44 PMVampire
06/07/2022, 3:44 PMgradle.plugin.net.mbonnin.sjmp:your-plugin-project-name
when it should be net.mbonnin.sjmp:your-plugin-project-name
Martin
06/07/2022, 3:45 PMMartin
06/07/2022, 3:46 PMgradle.plugin
is coming from. I guess it's for the markerVampire
06/07/2022, 3:46 PMVampire
06/07/2022, 3:47 PMmaven-publish
pluginMartin
06/07/2022, 3:47 PMVampire
06/07/2022, 3:47 PMVampire
06/07/2022, 3:47 PMVampire
06/07/2022, 3:47 PMGroup ID can't start withgradle.plugin
The most likely scenario when this publication rejection happens is when the Plugin Publish Plugin is being used without relying on the Maven Publish Plugin for generating the publication metadata. In this scenario the Plugin Publish Plugin is itself adding this prefix to the M2 GAV of the plugin and the server no longer accepts it.
The preferred solution is to simply include theplugin, as presented in the examples.maven-publish
If for some reason you can't use this solution, then your other option is to use ablock inside of yourmavenCoordinates
block to override the M2 GAV values, like so:pluginBundle
```pluginBundle {
mavenCoordinates {
groupId = "org.myorg"
artifactId = "greeting-plugins"
version = "1.4"
}
}```
Martin
06/07/2022, 3:48 PMMartin
06/07/2022, 3:49 PMVampire
06/07/2022, 3:49 PMVladimir Sitnikov
06/08/2022, 5:25 PM