From abf620d779595340c629a92840ae7cd2a587b232 Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Thu, 7 May 2026 18:26:48 -0400 Subject: [PATCH 1/2] Red hat maven repo hot fix. --- dd-java-agent/instrumentation/wildfly-9.0/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dd-java-agent/instrumentation/wildfly-9.0/build.gradle b/dd-java-agent/instrumentation/wildfly-9.0/build.gradle index e7b7ebcde39..51a0c5677f3 100644 --- a/dd-java-agent/instrumentation/wildfly-9.0/build.gradle +++ b/dd-java-agent/instrumentation/wildfly-9.0/build.gradle @@ -1,6 +1,13 @@ repositories { maven { url = 'https://maven.repository.redhat.com/ga/' + // Restrict this repository to Red Hat / WildFly / JBoss artifacts only. + // Without this filter, Gradle may probe this host for unrelated dependencies + // (for example JUnit), which makes the build flaky when the host is unreachable. + content { + includeGroupAndSubgroups 'org.wildfly' + includeGroupAndSubgroups 'org.jboss' + } } } From a2ee807da543fd5d759bb54e1473420a49708563 Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Thu, 7 May 2026 18:53:20 -0400 Subject: [PATCH 2/2] Applied fix after Codex review. --- .../instrumentation/wildfly-9.0/build.gradle | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/dd-java-agent/instrumentation/wildfly-9.0/build.gradle b/dd-java-agent/instrumentation/wildfly-9.0/build.gradle index 51a0c5677f3..8b7656a1c8b 100644 --- a/dd-java-agent/instrumentation/wildfly-9.0/build.gradle +++ b/dd-java-agent/instrumentation/wildfly-9.0/build.gradle @@ -1,16 +1,3 @@ -repositories { - maven { - url = 'https://maven.repository.redhat.com/ga/' - // Restrict this repository to Red Hat / WildFly / JBoss artifacts only. - // Without this filter, Gradle may probe this host for unrelated dependencies - // (for example JUnit), which makes the build flaky when the host is unreachable. - content { - includeGroupAndSubgroups 'org.wildfly' - includeGroupAndSubgroups 'org.jboss' - } - } -} - muzzle { extraRepository('redhat-ga', 'https://maven.repository.redhat.com/ga/') pass { @@ -23,6 +10,20 @@ muzzle { apply from: "$rootDir/gradle/java.gradle" +repositories { + // Declared after java.gradle so Maven Central is tried first; this repo only acts as a + // fallback for WildFly / JBoss artifacts not published to Central. The content filter + // also prevents Gradle from probing this host for unrelated dependencies (e.g. JUnit), + // which made the build flaky when the host was unreachable. + maven { + url = 'https://maven.repository.redhat.com/ga/' + content { + includeGroupAndSubgroups 'org.wildfly' + includeGroupAndSubgroups 'org.jboss' + } + } +} + testJvmConstraints { minJavaVersion = JavaVersion.VERSION_11 }