sysmon/plugins/build.gradle

32 lines
797 B
Groovy
Raw Normal View History

2021-05-01 12:44:55 +00:00
subprojects {
apply plugin: 'java-library'
jar {
manifest {
attributes(
'Plugin-Id' : "${pluginId}",
'Plugin-Class' : "${pluginClass}",
'Plugin-Version' : "${pluginVersion}",
'Plugin-Provider' : "${pluginProvider}",
'Plugin-Description': "${pluginDescription}"
)
}
}
task copyJar(type: Copy, dependsOn:[jar]) {
from jar // here it automatically reads jar file produced from jar task
into "../test/"
}
tasks.assemble.dependsOn {
copyJar
}
}
task customCleanUp(type:Delete) {
delete "test"
//delete files("${buildDir}/test/*.jar")
}
tasks.clean.dependsOn(tasks.customCleanUp)