-
Notifications
You must be signed in to change notification settings - Fork 252
Open
Description
Probably there is a problem with re-running convertSwagger2markup and/or asciidoctor after updating rest api annotations. What works for me is adding inputs.files like this:
convertSwagger2markup {
dependsOn test
inputs.files(swaggerOutputDir)
swaggerInput "${swaggerOutputDir}/swagger.json"
outputDir asciiDocOutputDir
config = [
'swagger2markup.pathsGroupedBy' : 'TAGS',
'swagger2markup.extensions.springRestDocs.snippetBaseUri': snippetsOutputDir.getAbsolutePath(),
'swagger2markup.outputLanguage':'PL'
]
}
asciidoctor {
dependsOn convertSwagger2markup
inputs.files( asciiDocOutputDir )
logDocuments true
sources {
include 'index.adoc'
}
backends = ['html5', 'pdf']
attributes = [
doctype: 'book',
toc: 'left',
toclevels: '3',
numbered: '',
sectlinks: '',
sectanchors: '',
hardbreaks: '',
generated: asciiDocOutputDir
]
}
jboxman
Metadata
Metadata
Assignees
Labels
No labels