diff options
Diffstat (limited to 'demo_gradle/plugins/plugin2/build.gradle')
-rw-r--r-- | demo_gradle/plugins/plugin2/build.gradle | 38 |
1 files changed, 7 insertions, 31 deletions
diff --git a/demo_gradle/plugins/plugin2/build.gradle b/demo_gradle/plugins/plugin2/build.gradle index da75a55..69791a7 100644 --- a/demo_gradle/plugins/plugin2/build.gradle +++ b/demo_gradle/plugins/plugin2/build.gradle @@ -1,33 +1,9 @@ -jar { - baseName = 'HelloPlugin' - version = '0.1.0' - manifest { - attributes 'Plugin-Class': 'org.pf4j.demo.hello.HelloPlugin', - 'Plugin-Id': 'HelloPlugin', - 'Plugin-Version': '1.0.0', - 'Plugin-Provider': 'Decebal Suiu' - } -} - -task plugin(type: Jar) { - baseName = 'HelloPlugin' - version = '0.1.0' - into('classes') { - with jar - } - into('lib') { - from configurations.compile - } - extension('zip') -} -assemble.dependsOn plugin - dependencies { - compileOnly project(':api') - // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already! - compile('org.pf4j:pf4j:2.0.0-SNAPSHOT') { - exclude group: "org.slf4j" - } - compile 'org.apache.commons:commons-lang3:3.5' - testCompile group: 'junit', name: 'junit', version: '4.+' + // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already! + compileOnly project(':api') + compileOnly(group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}") { + exclude group: "org.slf4j" + } + compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.5' + testCompile group: 'junit', name: 'junit', version: '4.+' } |