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
620 B
33 lines
620 B
7 years ago
|
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
|