diff --git a/spring-restdocs-gradle-plugin/src/main/groovy/org/springframework/restdocs/gradle/RestDocumentationPlugin.groovy b/spring-restdocs-gradle-plugin/src/main/groovy/org/springframework/restdocs/gradle/RestDocumentationPlugin.groovy index 9093b8a6..abfdd8c2 100644 --- a/spring-restdocs-gradle-plugin/src/main/groovy/org/springframework/restdocs/gradle/RestDocumentationPlugin.groovy +++ b/spring-restdocs-gradle-plugin/src/main/groovy/org/springframework/restdocs/gradle/RestDocumentationPlugin.groovy @@ -59,7 +59,8 @@ class RestDocumentationPlugin implements Plugin { sourceDir = project.file 'src/documentation/asciidoc' options = [ attributes: [ - generated: "$project.buildDir/generated-documentation" + generated: new File("$project.buildDir/generated-documentation").toURI().toURL(), + 'allow-uri-read': true ] ] inputs.files restDocumentationSnippets.outputs.files