Minor cleanup in build script
@@ -57,8 +57,7 @@ sourcesJar {
dependsOn unpackWildfly
}
-tasks.create("createModule").doLast {
- copy {
+task createModuleDescriptor(type: Copy) {
from "src/test/resources/module.xml"
into "build/modules/org/asciidoctor/asciidoctorj/main"
filter {
@@ -68,10 +67,10 @@ tasks.create("createModule").doLast {
}
}
- copy {
+task createModule(type: Copy) {
from configurations.jbossmodule
into "build/modules/org/asciidoctor/asciidoctorj/main"
- }
+ dependsOn createModuleDescriptor
}
@@ -110,8 +109,3 @@ test {
dependsOn unpackWildfly
dependsOn configurations.jbossmodule
}
-
-
-configurations.all {
- artifacts.clear()
-}
