diff --git a/openapi/build.gradle b/openapi/build.gradle index ee5d665859..c8d564c9be 100644 --- a/openapi/build.gradle +++ b/openapi/build.gradle @@ -5,7 +5,7 @@ plugins { dependencies { compileOnly(mn.micronaut.core.processor) - implementation(mn.micronaut.http.server) + implementation(mn.micronaut.http) api(projects.micronautOpenapiAnnotations) api(mn.jackson.databind) @@ -22,6 +22,7 @@ dependencies { testImplementation(mn.micronaut.management) testImplementation(mn.micronaut.inject.groovy.test) testImplementation(mn.micronaut.inject.java.test) + testImplementation(mn.micronaut.http.server) testImplementation(mn.snakeyaml) testImplementation(mnSecurity.micronaut.security) testImplementation(mnSerde.micronaut.serde.jackson) diff --git a/openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java b/openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java index 68fda13a94..0159c55f22 100644 --- a/openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java +++ b/openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java @@ -705,7 +705,7 @@ public ClassPathResourceLoader getResourceLoader() { if (classLoader == null) { classLoader = ClassLoader.getSystemClassLoader(); } - return new DefaultClassPathResourceLoader(classLoader, null, false); + return new DefaultClassPathResourceLoader(classLoader, null, false, false); } @Override