diff options
author | Cesar Andres <cesar.vera-bernal@lucidworks.com> | 2017-10-21 15:52:17 -0500 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2017-10-21 23:52:17 +0300 |
commit | 468abf3490028bbce5cf748d76cc22b73dab2d15 (patch) | |
tree | 47c6695bf579388858c789f7d71741247bf4cc18 /demo_gradle/build.gradle | |
parent | 42aaee15591e241add08323c76f4f813867f996b (diff) | |
download | pf4j-468abf3490028bbce5cf748d76cc22b73dab2d15.tar.gz pf4j-468abf3490028bbce5cf748d76cc22b73dab2d15.zip |
ISSUE-169: fix gradle demo (#177)
Diffstat (limited to 'demo_gradle/build.gradle')
-rw-r--r-- | demo_gradle/build.gradle | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/demo_gradle/build.gradle b/demo_gradle/build.gradle index d86746d..9968360 100644 --- a/demo_gradle/build.gradle +++ b/demo_gradle/build.gradle @@ -1,26 +1,14 @@ subprojects { - apply plugin: 'java' + apply plugin: 'java' - repositories { - mavenLocal() - mavenCentral() - } + repositories { + mavenLocal() + mavenCentral() + } } +// plugin location +ext.pluginsDir = rootProject.buildDir.path + '/plugins' + +task build(dependsOn: [':app:uberjar']) -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' - } - } - } - } -} |