From e00f623a2582510db0e03181d05507002a29a104 Mon Sep 17 00:00:00 2001 From: Michael Weinberger Date: Thu, 16 Feb 2017 13:04:43 +0100 Subject: [PATCH] Forgot to update api to latest version. Replaced deprecated << operator with doLast. --- demo_gradle/api/build.gradle | 4 ++-- 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' + } + } + } } - } }