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>
groupId
version
build.gradle>
In Gradle, you can set jar.archiveName to override the use of the working folder's name...
jar.archiveName
group = 'com.example' version = '0.0.1-SNAPSHOT' jar.archiveName = "myproject-0.0.1-SNAPSHOT.jar"