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.
34 lines
708 B
34 lines
708 B
7 years ago
|
subprojects {
|
||
|
jar {
|
||
|
manifest {
|
||
|
attributes 'Plugin-Class': "${pluginClass}",
|
||
|
'Plugin-Id': "${pluginId}",
|
||
5 years ago
|
'Plugin-Version': "${archiveVersion}",
|
||
2 years ago
|
'Plugin-Provider': "${pluginProvider}",
|
||
|
'Plugin-Dependencies': "${pluginDependencies}"
|
||
7 years ago
|
}
|
||
|
}
|
||
|
|
||
|
task plugin(type: Jar) {
|
||
5 years ago
|
archiveBaseName = "plugin-${pluginId}"
|
||
7 years ago
|
into('classes') {
|
||
|
with jar
|
||
|
}
|
||
|
into('lib') {
|
||
6 months ago
|
from configurations.runtimeClasspath
|
||
7 years ago
|
}
|
||
5 years ago
|
archiveExtension ='zip'
|
||
7 years ago
|
}
|
||
|
|
||
|
task assemblePlugin(type: Copy) {
|
||
|
from plugin
|
||
|
into pluginsDir
|
||
|
}
|
||
|
}
|
||
|
|
||
|
task assemblePlugins(type: Copy) {
|
||
|
dependsOn subprojects.assemblePlugin
|
||
|
}
|
||
|
|
||
|
build.dependsOn project.tasks.assemblePlugins
|