forked from StarOpenSource/Engine
Prevent copying in root project
This commit is contained in:
parent
e035b5ab80
commit
611d7a93ff
1 changed files with 6 additions and 0 deletions
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue