Gradle play plugin - How to change the default distribution package name

I have been looking for a way to change the default distribution package name (when you run gradle dist) from playBinary.zip to something like ${project.name}-${project.version}.zip. So far i have not made any headway. Is this possible? Any ideas how this can be achieved?

Many thanks.

1 Like

You can set the baseName of the distribution to change the name of the zip:

model {
    distributions {
        playBinary {
            baseName = "somethingElse"
        }
    }
}

Above will produce build/distributions/somethingElse.zip.

See also: https://docs.gradle.org/current/javadoc/org/gradle/api/distribution/Distribution.html

1 Like