Created
December 31, 2015 17:06
-
-
Save arahansa/f2e507b233a3594d665a to your computer and use it in GitHub Desktop.
restDocs 추가
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
testCompile "org.springframework.restdocs:spring-restdocs-mockmvc:$springRestdocsVersion" | |
} | |
plugins { | |
id "org.asciidoctor.convert" version "1.5.2" | |
} | |
ext { | |
snippetsDir = file('build/generated-snippets') | |
springRestdocsVersion = '1.1.0.BUILD-SNAPSHOT' | |
} | |
test { | |
outputs.dir snippetsDir | |
} | |
asciidoctor { | |
println "AsciiDOc output DIr ! ~~~" | |
println outputDir | |
backends 'html5' | |
inputs.dir snippetsDir | |
dependsOn test | |
sourceDir 'src/main/asciidoc' | |
attributes 'snippets': snippetsDir, | |
'source-highlighter' : 'coderay', | |
'imagesdir':'images', | |
'toc':'left', | |
'doctype': 'book', | |
'icons': 'font', | |
'setanchors':'true', | |
'idprefix':'', | |
'idseparator':'-', | |
'docinfo1':'true', | |
'build-gradle': file('build.gradle') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment