private static Path createTempDir() {
        try {
            // Ensure each gradle jvm gets a unique path by using the working number
            final String gradleWorker = Objects.requireNonNullElse(
                    System.getProperty("org.gradle.test.worker"),
                    "0");
            final String prefix = "stroom_" + gradleWorker + "_";
            return Files.createTempDirectory(prefix);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
Builds home and temp sub dirs in tempBaseDir
stroom-test-common/src/main/java/stroom/test/common/TemporaryPathCreator.java