From the gradle maven-publish plugin\'s documentation, it\'s clear that you set the groupId
and version
of the project directly in build.gradle
This is the correct answer for the maven-publish plugin. This is intended as the successor for the older maven plugin.
If, as I am, you are stuck with the older plugin, the correct answer to "How do I set the maven artifact id for a gradle project" is:
uploadArchives {
repositories {
mavenDeployer {
pom.artifactId = 'project-sample'
}
}
}