diff options
Diffstat (limited to 'demo_gradle/build.gradle')
-rw-r--r-- | demo_gradle/build.gradle | 17 |
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 +} |