Repository: quarkusio/quarkus
Issue: Unable to make the Vert.x cache directory in Windows

## Describe the bug
When running a Quarkus application in Windows, this warning is sometimes printed:

```
{"timestamp":"2021-04-28 13:02:58","sequence":346,"loggerClassName":"org.jboss.logging.Logger","loggerName":"io.quarkus.vertx.core.runtime.VertxCoreRecorder","level":"WARN","message":"Unable to make the Vert.x cache directory (C:\\\\Users\\\\RUNNER~1\\\\AppData\\\\Local\\\\Temp\\\\vertx-cache) world readable and writable","threadName":"main","threadId":1,"mdc":{},"ndc":"","hostName":"fv-az158-860","processName":"target/quarkus-app/quarkus-run.jar","processId":3172}
```

Which is unexpected as it should create a temporary folder. 
I think this is related to the changes made in https://github.com/quarkusio/quarkus/issues/7678. Concretely: https://github.com/quarkusio/quarkus/pull/15541/files#diff-a38e0d86cf6a637c19b6e0a0e23959f644886bdcc0f0e5615ce7cfa0e6bc9909R244

### Expected behavior
The Vert.x cache directory should work in Windows

## To Reproduce

A windows based machine is needed.

Steps to reproduce the behavior:
1. git clone `https://github.com/Sgitario/quarkus-startstop`
2. cd `quarkus-startstop`
3. git checkout `reproducer_16895`
4. `mvn clean verify -Ptestsuite -Dtest=ArtifactGeneratorBOMTest#quarkusUniverseBomExtensionsA`

The test should pass, but it's failing.

## Environment (please complete the following information):
### Quarkus version or git rev
1.13.2


Changed files:
extensions/vertx-core/runtime/src/main/java/io/quarkus/vertx/core/runtime/VertxCoreRecorder.java

diff --git a/extensions/vertx-core/runtime/src/main/java/io/quarkus/vertx/core/runtime/VertxCoreRecorder.java b/extensions/vertx-core/runtime/src/main/java/io/quarkus/vertx/core/runtime/VertxCoreRecorder.java
index ed799c7014c..7482133f4d3 100644
--- a/extensions/vertx-core/runtime/src/main/java/io/quarkus/vertx/core/runtime/VertxCoreRecorder.java
+++ b/extensions/vertx-core/runtime/src/main/java/io/quarkus/vertx/core/runtime/VertxCoreRecorder.java
@@ -11,6 +11,7 @@
 import java.util.Collections;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Locale;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.CompletableFuture;
@@ -259,9 +260,13 @@ private static VertxOptions convertToVertxOptions(VertxConfiguration conf, Vertx
                 if (!tmp.mkdirs()) {
                     LOGGER.warnf("Unable to create Vert.x cache directory : %s", tmp.getAbsolutePath());
                 }
-                if (!(tmp.setReadable(true, false) && tmp.setWritable(true, false))) {
-                    LOGGER.warnf("Unable to make the Vert.x cache directory (%s) world readable and writable",
-                            tmp.getAbsolutePath());
+                String os = System.getProperty("os.name").toLowerCase(Locale.ENGLISH);
+                if (!os.contains("windows")) {
+                    // Do not execute the following on windows.
+                    if (!(tmp.setReadable(true, false) && tmp.setWritable(true, false))) {
+                        LOGGER.warnf("Unable to make the Vert.x cache directory (%s) world readable and writable",
+                                tmp.getAbsolutePath());
+                    }
                 }
             }