Skip to content

Commit a42db9f

Browse files
committed
headless in subprocess
1 parent 34485a0 commit a42db9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ task init(type: Directory, dependsOn: 'clean', description: 'Creates artifact ou
3131
doLast {
3232
file(buildDir).mkdirs()
3333
}
34+
def headless = System.properties['java.awt.headless']
35+
if (headless == 'true') {
36+
systemProperties 'java.awt.headless': "true"
37+
}
3438
}
3539

3640
task wrapper(type: Wrapper) {

0 commit comments

Comments
 (0)