the minimum Gradle plugin / task setting is e.g. the following:
configure<SwaggerCodeGenConfig> {
sourcePath = "${project.projectDir.absolutePath}/openapi"
outputPath = "${buildDir.absolutePath}/openapi"
...
}
val generatedPetStoreSrcDir = File(buildDir, "openapi/<name>/src/main/kotlin")
sourceSets {
getByName("main").java.srcDirs(generatedPetStoreSrcDir)
}
Partly depends on #22
the minimum Gradle plugin / task setting is e.g. the following:
sourcePathto./instead of./specor./specification<buildDir>/generated/source/<name>. This directory is also added tosourceSetsautomatically. I would assume that the generator will behave the same way.