Skip to content

Commit

Permalink
Minor cleanup in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpanzer committed Apr 9, 2022
1 parent 39ab331 commit 675e7ec
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions asciidoctorj-wildfly-integration-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,20 @@ sourcesJar {
dependsOn unpackWildfly
}

tasks.create("createModule").doLast {
copy {
from "src/test/resources/module.xml"
into "build/modules/org/asciidoctor/asciidoctorj/main"
filter {
it
.replaceAll('@@version@@', project(':asciidoctorj').version)
.replaceAll('@@jrubyVersion@@', jrubyVersion)
}
task createModuleDescriptor(type: Copy) {
from "src/test/resources/module.xml"
into "build/modules/org/asciidoctor/asciidoctorj/main"
filter {
it
.replaceAll('@@version@@', project(':asciidoctorj').version)
.replaceAll('@@jrubyVersion@@', jrubyVersion)
}
}

copy {
from configurations.jbossmodule
into "build/modules/org/asciidoctor/asciidoctorj/main"
}
task createModule(type: Copy) {
from configurations.jbossmodule
into "build/modules/org/asciidoctor/asciidoctorj/main"
dependsOn createModuleDescriptor
}


Expand Down Expand Up @@ -110,8 +109,3 @@ test {
dependsOn unpackWildfly
dependsOn configurations.jbossmodule
}


configurations.all {
artifacts.clear()
}

0 comments on commit 675e7ec

Please sign in to comment.