Howto fix the name of distribution

Hello,

By default the name of distribution is define by the work directory name.
I want fix the distribution name for can have the same distribution name anywhere I build my project.

In documentation, I found a solution with :

distributions {
    myDistributionName {}
}

But it’s doesn’t work, the goal installMyDistributionNameDist, not depend on build.

How can I force a distribution name ?

The default name of the distribution is taken from the project name. To change the project name of your rootproject you add the following to the settings.gradle file:

rootProject.name = "MyCustomProjectName"
1 Like

Thanks a lot !
The settings.gradle isn’t highlighted in documentation (I never see information about it ever).
How can I aks for improve the documentation in this way ?