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


The following commit(s) were added to refs/heads/master by this push:
     new 8e45239f2f build(console): move `groovy-swing` to API scope
8e45239f2f is described below

commit 8e45239f2f5c0c4d103fd2598c7aba7d18e30b0b
Author: Mattias Reichel <[email protected]>
AuthorDate: Sun Mar 23 12:04:03 2025 +0100

    build(console): move `groovy-swing` to API scope
    
    `SwingBuilder` is part of `groovy-console`'s public API, so it must
    be in the `api` configuration scope. This prevents a downstream
    `NoClassDefFoundError: groovy.swing.SwingBuilder` at compile time.
---
 subprojects/groovy-console/build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subprojects/groovy-console/build.gradle 
b/subprojects/groovy-console/build.gradle
index cd8f0c9246..9352297106 100644
--- a/subprojects/groovy-console/build.gradle
+++ b/subprojects/groovy-console/build.gradle
@@ -22,9 +22,9 @@ plugins {
 
 dependencies {
     api rootProject // AstBrowser has methods with Closure params...
+    api projects.groovySwing // SwingBuilder is used in public API
     implementation 
"com.github.javaparser:javaparser-core:${versions.javaParser}"
     implementation "org.ow2.asm:asm-util:${versions.asm}"
-    implementation projects.groovySwing
     implementation projects.groovyTemplates
     implementation ("org.apache.ivy:ivy:${versions.ivy}") {
         transitive = false

Reply via email to