Browse Source

Fix #103

pull/104/head
ecumene-software 9 years ago
parent
commit
ea97d8819e
  1. 11
      demo_gradle/plugins/plugin1/build.gradle
  2. 11
      demo_gradle/plugins/plugin2/build.gradle

11
demo_gradle/plugins/plugin1/build.gradle

@ -12,14 +12,19 @@ jar {
task plugin(type: Jar) { task plugin(type: Jar) {
baseName = 'WelcomePlugin' baseName = 'WelcomePlugin'
version = '0.1.0' version = '0.1.0'
into('classes') into('classes'){
with jar
}
into('lib'){
from configurations.compile
}
extension('zip') extension('zip')
with jar
} }
assemble.dependsOn plugin
dependencies { dependencies {
compile project(':api') compile project(':api')
compile 'ro.fortsoft.pf4j:pf4j:0.4' compile 'ro.fortsoft.pf4j:pf4j:0.4'
compile 'org.apache.commons:commons-lang3:3.0' compile 'org.apache.commons:commons-lang3:3.0'
testCompile group: 'junit', name: 'junit', version: '4.+' testCompile group: 'junit', name: 'junit', version: '4.+'
} }

11
demo_gradle/plugins/plugin2/build.gradle

@ -12,14 +12,19 @@ jar {
task plugin(type: Jar) { task plugin(type: Jar) {
baseName = 'HelloPlugin' baseName = 'HelloPlugin'
version = '0.1.0' version = '0.1.0'
into('classes') into('classes'){
with jar
}
into('lib'){
from configurations.compile
}
extension('zip') extension('zip')
with jar
} }
assemble.dependsOn plugin
dependencies { dependencies {
compile project(':api') compile project(':api')
compile 'ro.fortsoft.pf4j:pf4j:0.4' compile 'ro.fortsoft.pf4j:pf4j:0.4'
compile 'org.apache.commons:commons-lang3:3.0' compile 'org.apache.commons:commons-lang3:3.0'
testCompile group: 'junit', name: 'junit', version: '4.+' testCompile group: 'junit', name: 'junit', version: '4.+'
} }

Loading…
Cancel
Save