JAL-4212 set no-macos-java-icon property if on macos in the testTasks
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 22 Jun 2023 11:00:44 +0000 (12:00 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 22 Jun 2023 11:00:44 +0000 (12:00 +0100)
build.gradle

index a47a7fd..673cec5 100644 (file)
@@ -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