-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Hello!
While trying to integrate your project (it's wonderful by the way! great job!), we realised that it's not easy to integrate it with a Kotlin gradle DSL.
In order to add a processor, I had to do this:
openapiProcessor {
apiPath("$projectDir/src/main/resources/openapi.yaml")
val p = com.github.hauner.openapi.gradle.Processor("spring")
p.processor("io.openapiprocessor:openapi-processor-spring:2021.3")
p.targetDir("$projectDir/build/openapi")
p.other.put("mapping", "$projectDir/src/main/resources/openapi-mapping.yaml")
processors.put("spring", p)
}
Apparently the methodMissing
method that you have does not work properly in Kotlin DSL, and using a spring { processor }
does not work unfortunately.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request