Skip to content

Commit 9d6327c

Browse files
committed
chore(gradle): add nodoc parameter to player deploy
Allows evading the doc tasks, which currently produce a lot of annoying output, when deploying for debugging purposes by adding -Pnodoc
1 parent a1aad5d commit 9d6327c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

player/build.gradle.kts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ tasks {
2929
}
3030

3131
val prepareZip by creating(Copy::class) {
32-
dependsOn(":sdk:doc", ":plugin:doc")
3332
into(buildDir.resolve("zip"))
3433
with(copySpec {
3534
from("buildscripts")
@@ -48,14 +47,17 @@ tasks {
4847
}, copySpec {
4948
from(configurations.default, arrayOf("sdk", "plugin").map { project(":$it").tasks.getByName("sourcesJar").outputs.files })
5049
into("lib")
51-
}, copySpec {
52-
from(project(":plugin").buildDir.resolve("doc"))
53-
into("doc/plugin-$gameName")
54-
}, copySpec {
55-
from(project(":sdk").buildDir.resolve("doc"))
56-
into("doc/sdk")
5750
})
58-
51+
if(!project.hasProperty("nodoc")) {
52+
dependsOn(":sdk:doc", ":plugin:doc")
53+
with(copySpec {
54+
from(project(":plugin").buildDir.resolve("doc"))
55+
into("doc/plugin-$gameName")
56+
}, copySpec {
57+
from(project(":sdk").buildDir.resolve("doc"))
58+
into("doc/sdk")
59+
})
60+
}
5961
}
6062

6163
val deploy by creating(Zip::class) {

0 commit comments

Comments
 (0)