diff options
author | Michael Weinberger <michael.weinberger@lyze.at> | 2017-02-16 12:56:46 +0100 |
---|---|---|
committer | Michael Weinberger <michael.weinberger@lyze.at> | 2017-02-16 12:56:46 +0100 |
commit | 540fc40a4f0f0ac6927d264cc13f820bdf9481b8 (patch) | |
tree | 69ff3c43af5f970db47a49ec7ac9880df92e378e /demo_gradle/build.gradle | |
parent | f85fa4ab158d3e86f8737e7f3b131c9bf8ff0d30 (diff) | |
download | pf4j-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.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 +} |