diff options
Diffstat (limited to 'demo_gradle')
-rw-r--r-- | demo_gradle/api/build.gradle | 4 | ||||
-rw-r--r-- | demo_gradle/build.gradle | 26 |
2 files changed, 16 insertions, 14 deletions
diff --git a/demo_gradle/api/build.gradle b/demo_gradle/api/build.gradle index a77fb9d..536df46 100644 --- a/demo_gradle/api/build.gradle +++ b/demo_gradle/api/build.gradle @@ -1,5 +1,5 @@ dependencies { - compile 'ro.fortsoft.pf4j:pf4j:0.4' + compile 'ro.fortsoft.pf4j:pf4j:1.1.1' compile 'org.apache.commons:commons-lang3:3.0' testCompile group: 'junit', name: 'junit', version: '4.+' -}
\ No newline at end of file +} diff --git a/demo_gradle/build.gradle b/demo_gradle/build.gradle index d2537c1..e38a949 100644 --- a/demo_gradle/build.gradle +++ b/demo_gradle/build.gradle @@ -7,18 +7,20 @@ subprojects { } } -task copyPlugins() << { - delete 'app/plugins' - mkdir 'app/plugins' +task copyPlugins() { + doLast { + delete 'app/plugins' + mkdir 'app/plugins' - subprojects.each { p -> - if (p.path.contains(":plugins/")) { - System.out.println("Copying plugin from " + p.path); - copy { - from p.projectDir.toString() + '/build/libs' - into 'app/plugins' - include '*.zip' - } + subprojects.each { p -> + if (p.path.contains(":plugins/")) { + System.out.println("Copying plugin from " + p.path); + copy { + from p.projectDir.toString() + '/build/libs' + into 'app/plugins' + include '*.zip' + } + } + } } - } } |