Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build tasks not running #21

Open
lkolek opened this issue Jul 10, 2018 · 0 comments
Open

build tasks not running #21

lkolek opened this issue Jul 10, 2018 · 0 comments

Comments

@lkolek
Copy link

lkolek commented Jul 10, 2018

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
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant