/ Published in: Groovy
Groovy Gradle create-dirs
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
apply plugin: 'groovy' buildscript { // for debug project.ext.swingWait = { aRunnable -> // prevent exception if in edtThread } project.ext.gi = { aObjToInspect -> swingWait { project.ext.kgi = { // kill gi windows swingWait({ it.dispose(); } } }) // end swingWait }; // end kgi } // end buildscript dependencies { groovy localGroovy() } task 'create-dirs' << { /* Example Output: $ gradle create-dirs :create-dirs src/main/resources src/main/java src/main/groovy src/test/resources src/test/java src/test/groovy */ it.mkdirs(); } } } task "hello-world" << { println "Hello World" }