Remove version when generating distribution

The distribution plugin is using the version field in the gradle project if available to suffix the name of the generated archive and the root folder within the archive. I don’t want this behavior as it makes some script automation around these archives more complicated as it needs to know the version used during the build when looking for the artifact and paths within the artifact. Is there a way to nullify the version for the distribution artifact?

As a workaround for now, I have stopped using the version variable and use my own ext variable to store the version and then apply it where necessary. This is a bit tedious though so I’d prefer to handle it some other way related to the configuration of the distribution plugin itself.

Hey Peter,

you could override the default name of the generated archive and the root folder for the distribution by

distZip {
    archiveName = "${}.zip"


Thanks René. That worked for me.