Run wildfly integration test with the normal build if jboss.home is set
MODIFY
asciidoctorj-wildfly-integration-test/build.gradle
asciidoctorj-wildfly-integration-test/build.gradle
@@ -54,11 +54,12 @@ test {
}
-if (project.hasProperty('jboss.home')) {
- task integrationTest(type: Test) {
+test {
useJUnit {
- includeCategories 'org.asciidoctor.categories.Wildfly'
+ if (!project.hasProperty('jboss.home')) {
+ excludeCategories 'org.asciidoctor.categories.Wildfly'
+ }
}
testLogging {
@@ -80,11 +81,16 @@ if (project.hasProperty('jboss.home')) {
}
}
+ if (project.hasProperty('jboss.home')) {
systemProperty('jboss.home', project.getProperty("jboss.home"))
systemProperty('module.path', project.getProperty("jboss.home") + "/modules" + File.pathSeparator + file('build/modules').absolutePath)
}
- integrationTest.dependsOn createModule
- integrationTest.dependsOn configurations.jbossmodule
+ dependsOn createModule
+ dependsOn configurations.jbossmodule
+}
+
+configurations.all {
+ artifacts.clear()
}

Run wildfly integration test with the normal build if jboss.home is set