swagger2markup-gradle-project-template
swagger2markup-gradle-project-template copied to clipboard
Could not find method outputDir()
I apologize in advance if this is a trivial/obvious issue, but...
When trying to convert a swagger file to markdown, I'm getting the following error
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/david/Projects/helpscout/chat-api/build.gradle' line: 16
* What went wrong:
A problem occurred evaluating root project 'chat-api'.
> Could not find method outputDir() for arguments [/Users/david/Projects/helpscout/chat-api/docs] on task ':convertSwagger2markup' of type io.github.swagger2markup.tasks.Swagger2MarkupTask.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
This is my build.gradle file ...
buildscript {
repositories {
jcenter()
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' }
}
dependencies {
classpath 'io.github.swagger2markup:swagger2markup-gradle-plugin:1.3.1'
}
}
apply plugin: 'io.github.swagger2markup'
convertSwagger2markup {
swaggerInput file("docs/swagger.yaml").getAbsolutePath()
outputDir file("docs").getAbsolutePath()
config = ['swagger2markup.markupLanguage' : 'ASCIIDOC',
'swagger2markup.generatedExamplesEnabled': true ]
}
task publishDocumentation {
dependsOn convertSwagger2markup
}
Any ideas on where to at least start looking? I'm stumped.
Thanks!
ds
How is your folder structure?
the build.gradle file is in the root of the project. The docs directory is as well.
I'm not sure as well. Does it work for you if you use the same structure as the template project?
https://github.com/Swagger2Markup/swagger2markup-gradle-project-template/blob/master/build.gradle