From 5f7b889ee04f8bae65c785c9cebc04d29e0811d5 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Thu, 22 Jun 2023 12:00:44 +0100 Subject: [PATCH] JAL-4212 set no-macos-java-icon property if on macos in the testTasks --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 1.7.10.2