I use Spring Rest Docs and JIB
When i do ./gradlew build and java -jar /some/build/libs/app.jar. I can get api documents generated by spring rest docs at example.com/docs/asciidocname.html.
but docker image with ./gradlew jib does not contain this url.
I want to get Api Document that is generated by Spring Rest Docs When i do ./gradlew jib
the below is a part of my build.gradle
plugins { id "org.asciidoctor.convert" version "2.4.0" id "com.google.cloud.tools.jib" version "2.5.0" } configurations { compileOnly { extendsFrom annotationProcessor } querydsl.extendsFrom compileClasspath asciidoctor } repositories { mavenCentral() maven { url 'https://repo.spring.io/milestone' } maven { url 'https://repo.spring.io/snapshot' } } sourceCompatibility = '11' dependencies { /** * RestDocs */ asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor' testImplementation('org.springframework.restdocs:spring-restdocs-mockmvc') } test { useJUnitPlatform { includeEngines 'junit-jupiter' } } /************************* * Rest Docs *************************/ asciidoctor { dependsOn test } bootJar { dependsOn asciidoctor from ("${asciidoctor.outputDir}/html5") { into 'static/docs' } }