Skip to content

Commit

Permalink
Avoid referencing java.desktop/com.apple.eawt if not on macosx
Browse files Browse the repository at this point in the history
  • Loading branch information
hbitteur committed Feb 7, 2025
1 parent 33b822e commit 35fbbf5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ application {
mainClass.set("$project.ext.mainClass")

// Needed to circumvent the limitations brought by Java 9 and above (the JigSaw cuts)
applicationDefaultJvmArgs = ["--add-exports=java.desktop/sun.awt.image=ALL-UNNAMED", "--add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED"]
if (hostOSName == 'macosx') {
applicationDefaultJvmArgs = ["--add-exports=java.desktop/sun.awt.image=ALL-UNNAMED", "--add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED"]
} else {
applicationDefaultJvmArgs = ["--add-exports=java.desktop/sun.awt.image=ALL-UNNAMED"]
}
}

// Perhaps no longer needed?
Expand Down

0 comments on commit 35fbbf5

Please sign in to comment.