File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ tasks {
29
29
}
30
30
31
31
val prepareZip by creating(Copy ::class ) {
32
- dependsOn(" :sdk:doc" , " :plugin:doc" )
33
32
into(buildDir.resolve(" zip" ))
34
33
with (copySpec {
35
34
from(" buildscripts" )
@@ -48,14 +47,17 @@ tasks {
48
47
}, copySpec {
49
48
from(configurations.default, arrayOf(" sdk" , " plugin" ).map { project(" :$it " ).tasks.getByName(" sourcesJar" ).outputs.files })
50
49
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" )
57
50
})
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
+ }
59
61
}
60
62
61
63
val deploy by creating(Zip ::class ) {
You can’t perform that action at this time.
0 commit comments