diff --git a/ansi/build.gradle b/ansi/build.gradle index 5c50ca88..e373861b 100644 --- a/ansi/build.gradle +++ b/ansi/build.gradle @@ -92,6 +92,13 @@ javadoc { test { useJUnitPlatform() + // Pass test configuration to test VMs + Map testConfiguration = new HashMap<>(); + for (String property : project.properties.keySet()) + if (property.startsWith("test.")) + testConfiguration.put(property, project.properties.get(property).toString()) + systemProperties(testConfiguration) + setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setForkEvery(1) setFailFast(true) diff --git a/base/build.gradle b/base/build.gradle index 0a8507a2..1e946797 100644 --- a/base/build.gradle +++ b/base/build.gradle @@ -131,6 +131,7 @@ javadoc { test { useJUnitPlatform() + // Pass test configuration to test VMs Map testConfiguration = new HashMap<>(); for (String property : project.properties.keySet()) if (property.startsWith("test.")) diff --git a/graphics/build.gradle b/graphics/build.gradle index 696d81bc..ba1cc4b4 100644 --- a/graphics/build.gradle +++ b/graphics/build.gradle @@ -90,6 +90,13 @@ javadoc { test { useJUnitPlatform() + // Pass test configuration to test VMs + Map testConfiguration = new HashMap<>(); + for (String property : project.properties.keySet()) + if (property.startsWith("test.")) + testConfiguration.put(property, project.properties.get(property).toString()) + systemProperties(testConfiguration) + setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setForkEvery(1) setFailFast(true) diff --git a/graphics/glfw/build.gradle b/graphics/glfw/build.gradle index ec2f759a..9cae4231 100644 --- a/graphics/glfw/build.gradle +++ b/graphics/glfw/build.gradle @@ -125,6 +125,13 @@ javadoc { test { useJUnitPlatform() + // Pass test configuration to test VMs + Map testConfiguration = new HashMap<>(); + for (String property : project.properties.keySet()) + if (property.startsWith("test.")) + testConfiguration.put(property, project.properties.get(property).toString()) + systemProperties(testConfiguration) + setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setForkEvery(1) setFailFast(true) diff --git a/graphics/opengl/build.gradle b/graphics/opengl/build.gradle index ccbb38ff..6e7d6fc8 100644 --- a/graphics/opengl/build.gradle +++ b/graphics/opengl/build.gradle @@ -129,6 +129,13 @@ javadoc { test { useJUnitPlatform() + // Pass test configuration to test VMs + Map testConfiguration = new HashMap<>(); + for (String property : project.properties.keySet()) + if (property.startsWith("test.")) + testConfiguration.put(property, project.properties.get(property).toString()) + systemProperties(testConfiguration) + setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setForkEvery(1) setFailFast(true) diff --git a/graphics/vulkan/build.gradle b/graphics/vulkan/build.gradle index 2babba19..f1f163ba 100644 --- a/graphics/vulkan/build.gradle +++ b/graphics/vulkan/build.gradle @@ -126,6 +126,13 @@ javadoc { test { useJUnitPlatform() + // Pass test configuration to test VMs + Map testConfiguration = new HashMap<>(); + for (String property : project.properties.keySet()) + if (property.startsWith("test.")) + testConfiguration.put(property, project.properties.get(property).toString()) + systemProperties(testConfiguration) + setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setForkEvery(1) setFailFast(true)