diff --git a/build.gradle.kts b/build.gradle.kts index 65512e193..bbe764281 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -204,6 +204,9 @@ allprojects { dependsOn(tasks.generateGitProperties) doLast { + if (rootProject == project) + return@doLast + val target: File = file("${project.projectDir}/src/main/resources/sosengine-${project.name.replace(":", "-")}-git.properties") val source: File = file("${project.projectDir}/build/resources/main/git.properties") @@ -220,6 +223,9 @@ allprojects { // -> Copy task tasks.register("copyGradleProperties") { doLast { + if (rootProject == project) + return@doLast + val target: File = file("${project.projectDir}/src/main/resources/sosengine-${project.name.replace(":", "-")}-gradle.properties") val source: File = file("${project(":").projectDir.path}/gradle.properties")