aboutsummaryrefslogtreecommitdiffstats
path: root/demo_gradle
diff options
context:
space:
mode:
authorMichael Weinberger <michael.weinberger@lyze.at>2017-02-16 13:04:43 +0100
committerMichael Weinberger <michael.weinberger@lyze.at>2017-02-16 13:04:43 +0100
commite00f623a2582510db0e03181d05507002a29a104 (patch)
treea76d22b235dc0d0543332e038c094cb37f2d6a51 /demo_gradle
parent540fc40a4f0f0ac6927d264cc13f820bdf9481b8 (diff)
downloadpf4j-e00f623a2582510db0e03181d05507002a29a104.tar.gz
pf4j-e00f623a2582510db0e03181d05507002a29a104.zip
Forgot to update api to latest version.
Replaced deprecated << operator with doLast.
Diffstat (limited to 'demo_gradle')
-rw-r--r--demo_gradle/api/build.gradle4
-rw-r--r--demo_gradle/build.gradle26
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'
+ }
+ }
+ }
}
- }
}