This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 624ed2d0398281f90345694c2cad00addafcd7ce
Author: Paul King <[email protected]>
AuthorDate: Wed Dec 4 17:36:56 2024 +1000

    minor refactor: avoid hardcoding dependency
---
 subprojects/groovy-jmx/build.gradle | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/subprojects/groovy-jmx/build.gradle 
b/subprojects/groovy-jmx/build.gradle
index 5ee777db95..036d27296c 100644
--- a/subprojects/groovy-jmx/build.gradle
+++ b/subprojects/groovy-jmx/build.gradle
@@ -23,8 +23,11 @@ plugins {
 dependencies {
     api rootProject // JmxBuilder extends FactoryBuilderSupport...
     testImplementation projects.groovyTest
-    testRuntimeOnly("org.apache.ivy:ivy:${versions.ivy}") {
-        transitive = false
+    testRuntimeOnly(project(':')) {
+        because 'Tests are using Grapes'
+        capabilities {
+            requireCapability 'org.apache.groovy:groovy-grapes'
+        }
     }
     testRuntimeOnly projects.groovySwing
-}
\ No newline at end of file
+}

Reply via email to