Skip to content

Commit f0a8854

Browse files
Red hat maven repo hot fix. (#11316)
Red hat maven repo hot fix. Applied fix after Codex review. Merge branch 'master' into alexeyk/fixed-maven-repo-resolution Co-authored-by: alexey.kuznetsov <alexey.kuznetsov@datadoghq.com>
1 parent 98dbe8e commit f0a8854

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

dd-java-agent/instrumentation/wildfly-9.0/build.gradle

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
repositories {
2-
maven {
3-
url = 'https://maven.repository.redhat.com/ga/'
4-
}
5-
}
6-
71
muzzle {
82
extraRepository('redhat-ga', 'https://maven.repository.redhat.com/ga/')
93
pass {
@@ -16,6 +10,20 @@ muzzle {
1610

1711
apply from: "$rootDir/gradle/java.gradle"
1812

13+
repositories {
14+
// Declared after java.gradle so Maven Central is tried first; this repo only acts as a
15+
// fallback for WildFly / JBoss artifacts not published to Central. The content filter
16+
// also prevents Gradle from probing this host for unrelated dependencies (e.g. JUnit),
17+
// which made the build flaky when the host was unreachable.
18+
maven {
19+
url = 'https://maven.repository.redhat.com/ga/'
20+
content {
21+
includeGroupAndSubgroups 'org.wildfly'
22+
includeGroupAndSubgroups 'org.jboss'
23+
}
24+
}
25+
}
26+
1927
testJvmConstraints {
2028
minJavaVersion = JavaVersion.VERSION_11
2129
}

0 commit comments

Comments
 (0)