aboutsummaryrefslogtreecommitdiffstats
path: root/demo_gradle/plugins/build.gradle
diff options
context:
space:
mode:
authorCesar Andres <cesar.vera-bernal@lucidworks.com>2017-10-21 15:52:17 -0500
committerDecebal Suiu <decebal.suiu@gmail.com>2017-10-21 23:52:17 +0300
commit468abf3490028bbce5cf748d76cc22b73dab2d15 (patch)
tree47c6695bf579388858c789f7d71741247bf4cc18 /demo_gradle/plugins/build.gradle
parent42aaee15591e241add08323c76f4f813867f996b (diff)
downloadpf4j-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.gradle32
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