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/plugins/build.gradle | |
parent | 42aaee15591e241add08323c76f4f813867f996b (diff) | |
download | pf4j-468abf3490028bbce5cf748d76cc22b73dab2d15.tar.gz pf4j-468abf3490028bbce5cf748d76cc22b73dab2d15.zip |
ISSUE-169: fix gradle demo (#177)
Diffstat (limited to 'demo_gradle/plugins/build.gradle')
-rw-r--r-- | demo_gradle/plugins/build.gradle | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/demo_gradle/plugins/build.gradle b/demo_gradle/plugins/build.gradle new file mode 100644 index 0000000..104b17d --- /dev/null +++ b/demo_gradle/plugins/build.gradle @@ -0,0 +1,32 @@ +subprojects { + jar { + manifest { + attributes 'Plugin-Class': "${pluginClass}", + 'Plugin-Id': "${pluginId}", + 'Plugin-Version': "${version}", + 'Plugin-Provider': "${pluginProvider}" + } + } + + task plugin(type: Jar) { + baseName = "plugin-${pluginId}" + into('classes') { + with jar + } + into('lib') { + from configurations.compile + } + extension('zip') + } + + task assemblePlugin(type: Copy) { + from plugin + into pluginsDir + } +} + +task assemblePlugins(type: Copy) { + dependsOn subprojects.assemblePlugin +} + +build.dependsOn project.tasks.assemblePlugins |