We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f02019 commit 33cb671Copy full SHA for 33cb671
src/main/groovy/com/avast/gradle/dockercompose/ComposeSettings.groovy
@@ -70,8 +70,13 @@ abstract class ComposeSettings {
70
protected Boolean customProjectNameSet
71
protected String safeProjectNamePrefix
72
void setProjectName(String customProjectName) {
73
- this.customProjectName = customProjectName
74
- this.customProjectNameSet = true
+ if (customProjectName == null || customProjectName.isEmpty()) {
+ this.customProjectName = null
75
+ this.customProjectNameSet = false
76
+ } else {
77
+ this.customProjectName = customProjectName
78
+ this.customProjectNameSet = true
79
+ }
80
}
81
private Provider<String> projectNameProvider
82
Provider<String> getProjectName() {
0 commit comments