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 {
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 ) {
You can’t perform that action at this time.
0 commit comments