Is there a gradle plugin that allows me to assemble a JBoss sar file including its jboss-service.xml deployment descriptor file? Thanks for any tips on how best to do this.
Asked
Active
Viewed 372 times
1 Answers
1
Here is how I assembled a JBoss sar file using the Jar task:
sourceSets {
main {
java {
srcDir 'src/main/java'
include '**/mypackage/service/*'
}
}
}
jar {
extension = "sar"
metaInf {
from('src/mypackage/service') {
include 'jboss-service.xml'
}
}
}

Farrukh Najmi
- 5,055
- 3
- 35
- 54
-
instead of extension within jar task could be used archiveName = "${project.name}.sar" – Oleksandr Tsurika Jul 05 '19 at 16:03