From: Ben Soares Date: Thu, 22 Jun 2023 11:00:44 +0000 (+0100) Subject: JAL-4212 set no-macos-java-icon property if on macos in the testTasks X-Git-Tag: Release_2_11_3_0~8^2~46^2^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5f7b889ee04f8bae65c785c9cebc04d29e0811d5;p=jalview.git JAL-4212 set no-macos-java-icon property if on macos in the testTasks --- diff --git a/build.gradle b/build.gradle index a47a7fd..673cec5 100644 --- a/build.gradle +++ b/build.gradle @@ -1834,6 +1834,10 @@ tasks.withType(Test).matching {t -> t.getName().startsWith("testTask")}.all { te info.events = [ TestLogEvent.FAILED ] } + if (OperatingSystem.current().isMacOsX()) { + testTask.systemProperty "apple.awt.UIElement", "true" + testTask.environment "JAVA_TOOL_OPTIONS", "-Dapple.awt.UIElement=true" + } ignoreFailures = true // Always try to run all tests for all modules