I have a gradle project using gitlab's CI, unforunately using any Swing classes results in:
java.awt.AWTException: headless environment
I found one answer at Easiest way to unit test SWT and Swing apps in a headless environment? that mentioned using Xvfb, which seems like it would work, but didn't elaborate because there was a tool-specific simpler option. If Xvfb would work, how does it need to be configured in my project? I couldn't find any resources for gitlab/gradle. Is there a simpler option specific to gitlab?