From ea97d8819e2c452a5191577a9b237150e736c3d6 Mon Sep 17 00:00:00 2001 From: ecumene-software Date: Thu, 30 Jun 2016 16:23:14 -0230 Subject: [PATCH 1/2] Fix #103 --- demo_gradle/plugins/plugin1/build.gradle | 11 ++++++++--- demo_gradle/plugins/plugin2/build.gradle | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/demo_gradle/plugins/plugin1/build.gradle b/demo_gradle/plugins/plugin1/build.gradle index 3655668..24403c2 100644 --- a/demo_gradle/plugins/plugin1/build.gradle +++ b/demo_gradle/plugins/plugin1/build.gradle @@ -12,14 +12,19 @@ jar { task plugin(type: Jar) { baseName = 'WelcomePlugin' version = '0.1.0' - into('classes') + into('classes'){ + with jar + } + into('lib'){ + from configurations.compile + } extension('zip') - with jar } +assemble.dependsOn plugin dependencies { compile project(':api') compile 'ro.fortsoft.pf4j:pf4j:0.4' compile 'org.apache.commons:commons-lang3:3.0' testCompile group: 'junit', name: 'junit', version: '4.+' -} \ No newline at end of file +} diff --git a/demo_gradle/plugins/plugin2/build.gradle b/demo_gradle/plugins/plugin2/build.gradle index ee49c47..7dee83d 100644 --- a/demo_gradle/plugins/plugin2/build.gradle +++ b/demo_gradle/plugins/plugin2/build.gradle @@ -12,14 +12,19 @@ jar { task plugin(type: Jar) { baseName = 'HelloPlugin' version = '0.1.0' - into('classes') + into('classes'){ + with jar + } + into('lib'){ + from configurations.compile + } extension('zip') - with jar } +assemble.dependsOn plugin dependencies { compile project(':api') compile 'ro.fortsoft.pf4j:pf4j:0.4' compile 'org.apache.commons:commons-lang3:3.0' testCompile group: 'junit', name: 'junit', version: '4.+' -} \ No newline at end of file +} From e96afce5a1192a98cd9624c349122ac4c029ad74 Mon Sep 17 00:00:00 2001 From: ecumene-software Date: Thu, 30 Jun 2016 16:24:23 -0230 Subject: [PATCH 2/2] Included SLF4J Simple to gradle-demo's app --- demo_gradle/app/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/demo_gradle/app/build.gradle b/demo_gradle/app/build.gradle index 7532967..c349034 100644 --- a/demo_gradle/app/build.gradle +++ b/demo_gradle/app/build.gradle @@ -7,6 +7,7 @@ dependencies { compile 'ro.fortsoft.pf4j:pf4j:0.4' compile 'org.apache.commons:commons-lang3:3.0' testCompile group: 'junit', name: 'junit', version: '4.+' + compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.6.1' } jar {