mirror of https://github.com/pf4j/pf4j.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
885 B
33 lines
885 B
jar { |
|
baseName = 'WelcomePlugin' |
|
version = '0.1.0' |
|
manifest { |
|
attributes 'Plugin-Class': 'org.pf4j.demo.welcome.WelcomePlugin', |
|
'Plugin-Id': 'WelcomePlugin', |
|
'Plugin-Version': '1.0.0', |
|
'Plugin-Provider': 'Decebal Suiu' |
|
} |
|
} |
|
|
|
task plugin(type: Jar) { |
|
baseName = 'WelcomePlugin' |
|
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.+' |
|
}
|
|
|