From 611d7a93ff7fb875bb2afde743ce8798ab02b628 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Thu, 19 Dec 2024 02:52:37 +0100 Subject: [PATCH] Prevent copying in root project --- build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 65512e1..bbe7642 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")