gmazelier / gradle-jasperreports

Provides the capability to compile JasperReports design files.
https://plugins.gradle.org/plugin/com.github.gmazelier.jasperreports
Apache License 2.0
25 stars 20 forks source link

Prevent report compilation from creating icon for Gradle daemon on MacOS dock #11

Open longwa opened 6 years ago

longwa commented 6 years ago

When the report compilation runs, it exposes a Java icon on the MacOS dock. When using the gradle daemon, the icon will stay as long as the gradle daemon is alive.

The compilation needs to set the -Dapple.awt.UIElement=true on whatever process is being forked to do the compilation.

Setting the global export JAVA_TOOL_OPTIONS="-Dapple.awt.UIElement=true" does fix the problem, but is probably not the best solution since some apps may want to be on the dock.