@@ -8,24 +8,6 @@ repositories {
88 maven {
99 url ' https://maven.repository.redhat.com/ga/'
1010 }
11- ivy {
12- url ' https://download.jboss.org/'
13- patternLayout {
14- artifact ' /[organisation]/[revision]/[module]/[organisation]-[module]-[revision].[ext]'
15- metadataSources {
16- artifact()
17- }
18- }
19- }
20- ivy {
21- url ' https://github.com/wildfly'
22- patternLayout {
23- artifact ' /[organisation]/releases/download/[revision]/[organisation]-[revision].[ext]'
24- metadataSources {
25- artifact()
26- }
27- }
28- }
2911}
3012
3113muzzle {
@@ -46,9 +28,6 @@ addTestSuiteExtendingForDir("latestDepForkedTest", "latestDepTest", "test")
4628configurations {
4729 wildflyTest
4830 wildflyLatestDepTest
49- wildflyLatestPoll {
50- canBeResolved = true
51- }
5231}
5332
5433dependencies {
@@ -68,17 +47,17 @@ dependencies {
6847 testRuntimeOnly group : ' org.jboss.shrinkwrap' , name : ' shrinkwrap-spi' , version : ' 1.2.6'
6948 testRuntimeOnly group : ' org.jboss.shrinkwrap' , name : ' shrinkwrap-impl-base' , version : ' 1.2.6'
7049
71- wildflyTest " wildfly:servlet :21.0.0.Final@zip"
50+ wildflyTest " org. wildfly:wildfly-dist :21.0.0.Final@zip"
7251
7352 latestDepTestImplementation group : ' org.wildfly.core' , name : ' wildfly-embedded' , version : ' +'
7453 latestDepTestImplementation group : ' org.wildfly.core' , name : ' wildfly-server' , version : ' +'
75- wildflyLatestPoll group : ' org.wildfly' , name : ' wildfly-dist' , version : ' + '
54+ wildflyLatestDepTest " org.wildfly: wildfly-dist:+@zip "
7655
77- configurations. wildflyLatestPoll . resolve()
78- def latestWildflyVersion = configurations. wildflyLatestPoll . resolvedConfiguration. getResolvedArtifacts(). find {
56+ configurations. wildflyLatestDepTest . resolve()
57+ def latestWildflyVersion = configurations. wildflyLatestDepTest . resolvedConfiguration. getResolvedArtifacts(). find {
7958 it. name == " wildfly-dist"
8059 }. moduleVersion. id. version
81- wildflyLatestDepTest " wildfly:wildfly: $l atestWildflyVersion @zip "
60+
8261 latestDepForkedTest {
8362 configure {
8463 jvmArgs + = [" -Dtest.jboss.home=$buildDir /wildfly-${ latestWildflyVersion} " ]
@@ -110,14 +89,13 @@ def extractWildfly(config, zipFileNamePrefix, sync) {
11089tasks. register(" extractWildfly" , Copy ) {
11190 dependsOn configurations. wildflyTest
11291 mustRunAfter tasks. compileTestGroovy
113- extractWildfly(configurations. wildflyTest, " servlet " , it)
92+ extractWildfly(configurations. wildflyTest, " wildfly-dist " , it)
11493
11594 // When tests are disabled this would still be run, so disable this manually
11695 onlyIf { ! project. rootProject. hasProperty(" skipTests" ) }
11796}
11897
11998tasks. register(" extractLatestWildfly" , Copy ) {
120- dependsOn configurations. wildflyLatestDepTest
12199 mustRunAfter tasks. compileLatestDepTestGroovy
122100 mustRunAfter tasks. compileLatestDepForkedTestGroovy
123101 mustRunAfter tasks. compileLatestDepTestJava
@@ -186,7 +164,7 @@ processTestResources {
186164
187165forkedTest {
188166 configure {
189- jvmArgs + = [" -Dtest.jboss.home=$buildDir /wildfly-servlet- 21.0.0.Final" ]
167+ jvmArgs + = [" -Dtest.jboss.home=$buildDir /wildfly-21.0.0.Final" ]
190168 }
191169}
192170
0 commit comments