@@ -8,24 +8,6 @@ repositories {
8
8
maven {
9
9
url ' https://maven.repository.redhat.com/ga/'
10
10
}
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
- }
29
11
}
30
12
31
13
muzzle {
@@ -46,9 +28,6 @@ addTestSuiteExtendingForDir("latestDepForkedTest", "latestDepTest", "test")
46
28
configurations {
47
29
wildflyTest
48
30
wildflyLatestDepTest
49
- wildflyLatestPoll {
50
- canBeResolved = true
51
- }
52
31
}
53
32
54
33
dependencies {
@@ -68,17 +47,17 @@ dependencies {
68
47
testRuntimeOnly group : ' org.jboss.shrinkwrap' , name : ' shrinkwrap-spi' , version : ' 1.2.6'
69
48
testRuntimeOnly group : ' org.jboss.shrinkwrap' , name : ' shrinkwrap-impl-base' , version : ' 1.2.6'
70
49
71
- wildflyTest " wildfly:servlet :21.0.0.Final@zip"
50
+ wildflyTest " org. wildfly:wildfly-dist :21.0.0.Final@zip"
72
51
73
52
latestDepTestImplementation group : ' org.wildfly.core' , name : ' wildfly-embedded' , version : ' +'
74
53
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 "
76
55
77
- configurations. wildflyLatestPoll . resolve()
78
- def latestWildflyVersion = configurations. wildflyLatestPoll . resolvedConfiguration. getResolvedArtifacts(). find {
56
+ configurations. wildflyLatestDepTest . resolve()
57
+ def latestWildflyVersion = configurations. wildflyLatestDepTest . resolvedConfiguration. getResolvedArtifacts(). find {
79
58
it. name == " wildfly-dist"
80
59
}. moduleVersion. id. version
81
- wildflyLatestDepTest " wildfly:wildfly: $l atestWildflyVersion @zip "
60
+
82
61
latestDepForkedTest {
83
62
configure {
84
63
jvmArgs + = [" -Dtest.jboss.home=$buildDir /wildfly-${ latestWildflyVersion} " ]
@@ -110,14 +89,13 @@ def extractWildfly(config, zipFileNamePrefix, sync) {
110
89
tasks. register(" extractWildfly" , Copy ) {
111
90
dependsOn configurations. wildflyTest
112
91
mustRunAfter tasks. compileTestGroovy
113
- extractWildfly(configurations. wildflyTest, " servlet " , it)
92
+ extractWildfly(configurations. wildflyTest, " wildfly-dist " , it)
114
93
115
94
// When tests are disabled this would still be run, so disable this manually
116
95
onlyIf { ! project. rootProject. hasProperty(" skipTests" ) }
117
96
}
118
97
119
98
tasks. register(" extractLatestWildfly" , Copy ) {
120
- dependsOn configurations. wildflyLatestDepTest
121
99
mustRunAfter tasks. compileLatestDepTestGroovy
122
100
mustRunAfter tasks. compileLatestDepForkedTestGroovy
123
101
mustRunAfter tasks. compileLatestDepTestJava
@@ -186,7 +164,7 @@ processTestResources {
186
164
187
165
forkedTest {
188
166
configure {
189
- jvmArgs + = [" -Dtest.jboss.home=$buildDir /wildfly-servlet- 21.0.0.Final" ]
167
+ jvmArgs + = [" -Dtest.jboss.home=$buildDir /wildfly-21.0.0.Final" ]
190
168
}
191
169
}
192
170
0 commit comments