Prevent copying in root project
All checks were successful
PRs & Pushes / build (push) Successful in 2m38s
PRs & Pushes / test (push) Successful in 3m17s
PRs & Pushes / build-apidoc (push) Successful in 2m31s

This commit is contained in:
JeremyStar™ 2024-12-19 02:52:37 +01:00
parent e035b5ab80
commit 611d7a93ff
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -204,6 +204,9 @@ allprojects {
dependsOn(tasks.generateGitProperties) dependsOn(tasks.generateGitProperties)
doLast { doLast {
if (rootProject == project)
return@doLast
val target: File = file("${project.projectDir}/src/main/resources/sosengine-${project.name.replace(":", "-")}-git.properties") 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") val source: File = file("${project.projectDir}/build/resources/main/git.properties")
@ -220,6 +223,9 @@ allprojects {
// -> Copy task // -> Copy task
tasks.register("copyGradleProperties") { tasks.register("copyGradleProperties") {
doLast { doLast {
if (rootProject == project)
return@doLast
val target: File = file("${project.projectDir}/src/main/resources/sosengine-${project.name.replace(":", "-")}-gradle.properties") val target: File = file("${project.projectDir}/src/main/resources/sosengine-${project.name.replace(":", "-")}-gradle.properties")
val source: File = file("${project(":").projectDir.path}/gradle.properties") val source: File = file("${project(":").projectDir.path}/gradle.properties")