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>
However, the artifactId appears to be taken from the name of the folder you are working within. Is there a way to set the artifactId explicitly?
A simple answer to this is to set the jar.baseName
which then overrides the directory name.
// changes the name of the jar from the directory name
jar.baseName = 'some_arifact_name';
This seems to work for me.