-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or requestinvalidThis doesn't seem rightThis doesn't seem right
Description
Partly depends on #22
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)
}
- I would set
sourcePathto./instead of./specor./specification - The vast majority of generators set the output automatically, e.g.
<buildDir>/generated/source/<name>. This directory is also added tosourceSetsautomatically. I would assume that the generator will behave the same way.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestinvalidThis doesn't seem rightThis doesn't seem right