NoClassDefFoundError: groovy.swing.SwingBuilder
Mattias Reichel <[email protected]> Thu, 13 Mar 2025 11:16:23 +0100
| Newsgroups | gmane.comp.lang.groovy.user |
|---|---|
| Message-ID | <CAKxq+fC9sfEEoxHijQ+fbgW=vFtHzAs+L_0WP52ZPb1kkoEEGw@mail.gmail.com> |
When trying to clean up the dependencies in grails-console ( https://github.com/grails/grails-core), I get a java.lang.NoClassDefFoundError: groovy.swing.SwingBuilder on compilation. I was surprised, because I do not find any usage of this class in the sources. Looking at the sources of groovy-console (which is a dependency of grails-console), I see that groovy.console.ui.Console exposes the SwingBuilder class as a public property, without declaring groovy-swing as an api dependency, and I wonder if this could be the cause for this compilation error, or if I'm missing something else.