aboutsummaryrefslogtreecommitdiffstats
path: root/demo_gradle/build.gradle
diff options
context:
space:
mode:
authorMichael Weinberger <michael.weinberger@lyze.at>2017-02-16 12:56:46 +0100
committerMichael Weinberger <michael.weinberger@lyze.at>2017-02-16 12:56:46 +0100
commit540fc40a4f0f0ac6927d264cc13f820bdf9481b8 (patch)
tree69ff3c43af5f970db47a49ec7ac9880df92e378e /demo_gradle/build.gradle
parentf85fa4ab158d3e86f8737e7f3b131c9bf8ff0d30 (diff)
downloadpf4j-540fc40a4f0f0ac6927d264cc13f820bdf9481b8.tar.gz
pf4j-540fc40a4f0f0ac6927d264cc13f820bdf9481b8.zip
Updated pf4j library to the newest version.
Fixed compliation errors. Added "copyPlugins" gradle task which copies all plugins into the proper directory.
Diffstat (limited to 'demo_gradle/build.gradle')
-rw-r--r--demo_gradle/build.gradle17
1 files changed, 14 insertions, 3 deletions
diff --git a/demo_gradle/build.gradle b/demo_gradle/build.gradle
index 51cbce5..d2537c1 100644
--- a/demo_gradle/build.gradle
+++ b/demo_gradle/build.gradle
@@ -5,9 +5,20 @@ subprojects {
mavenLocal()
mavenCentral()
}
+}
+task copyPlugins() << {
+ delete 'app/plugins'
+ mkdir 'app/plugins'
- task wrapper(type: Wrapper) {
- gradleVersion = '1.11'
+ 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'
+ }
+ }
}
-} \ No newline at end of file
+}