From 6b918d2f5e11de827da7b7d88ff873f66a28553c Mon Sep 17 00:00:00 2001 From: mslavik-leidos <144704289+mslavik-leidos@users.noreply.github.com> Date: Mon, 11 Sep 2023 13:52:56 -0500 Subject: [PATCH] Fix gradle multithread issue (#1568) --- .../io/smallrye/openapi/gradleplugin/SmallryeOpenApiTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gradle-plugin/src/main/java/io/smallrye/openapi/gradleplugin/SmallryeOpenApiTask.java b/tools/gradle-plugin/src/main/java/io/smallrye/openapi/gradleplugin/SmallryeOpenApiTask.java index f1dfa2489..a20be6fea 100644 --- a/tools/gradle-plugin/src/main/java/io/smallrye/openapi/gradleplugin/SmallryeOpenApiTask.java +++ b/tools/gradle-plugin/src/main/java/io/smallrye/openapi/gradleplugin/SmallryeOpenApiTask.java @@ -136,7 +136,7 @@ private OpenApiDocument generateSchema( OpenAPI annotationModel = generateAnnotationModel(index, openApiConfig, SmallryeOpenApiTask.class.getClassLoader()); OpenAPI readerModel = OpenApiProcessor.modelFromReader(openApiConfig, classLoader, index); - OpenApiDocument document = OpenApiDocument.INSTANCE; + OpenApiDocument document = OpenApiDocument.newInstance(); document.reset(); document.config(openApiConfig);