Why is this an issue?
settings.gradle.kts
or settings.gradle
are used to define general project properties.
It is a good practice to specify the rootProject.name
property to set your project name and avoid inconsistencies. By default, Gradle
uses the project directory name as the project name and this is not guaranteed to always be the desired behavior.
How to fix it
Add the rootProject.name
property to the Gradle settings file (i.e. settings.gradle.kts
or
settings.gradle
)
Code examples
Noncompliant code example
include("module1", "module2")
Compliant solution
rootProject.name = "myProject"
include("module1", "module2")
Resources
Documentation
Standards