Gradle Project Needs Artifact Property

Project has ‘group’ and ‘version’ but not ‘artifact’, which seems odd to me. When publishing to repo’s like Maven you need artifact since that determines your jar names.

Today we have to do:

ext.artifact = ‘org.prod.app’
jar {
baseName = “${project.ext.artifact}”
}

which is tedious. The jar basename should default to the value of artifact rather than the project name. This makes it work just like Maven.

I’m sorry I don’t see a question here.

Are you asking if there is a way to have this functionality such as using the Maven Publish Plugin or are you suggesting a change to the existing behavior? If you are requesting a new feature, please create an issue on GitHub.