From 9150cbeae091ffd1252af119efc05aae5cd9e791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20August=C3=BDn?= Date: Tue, 15 Mar 2022 14:25:38 +0100 Subject: [PATCH] feat: replace dots in default project name Fixes #347 --- .../com/avast/gradle/dockercompose/ComposeSettings.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/com/avast/gradle/dockercompose/ComposeSettings.groovy b/src/main/groovy/com/avast/gradle/dockercompose/ComposeSettings.groovy index 168551ed..c4d0b3f6 100644 --- a/src/main/groovy/com/avast/gradle/dockercompose/ComposeSettings.groovy +++ b/src/main/groovy/com/avast/gradle/dockercompose/ComposeSettings.groovy @@ -188,7 +188,7 @@ abstract class ComposeSettings { private static String generateSafeProjectNamePrefix(Project project) { def fullPathMd5 = MessageDigest.getInstance("MD5").digest(project.projectDir.absolutePath.toString().getBytes(StandardCharsets.UTF_8)).encodeHex().toString() - "${fullPathMd5}_${project.name}" + "${fullPathMd5}_${project.name.replace('.', '_')}" } protected ComposeSettings cloneAsNested(String name) {