blob: 18727138815f6071e3fd1007a3f66c869a55822c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
apply plugin: 'org.openapi.generator'
dependencies {
implementation "org.springframework.boot:spring-boot-starter-webflux"
implementation "org.openapitools:openapi-generator:$openapiVersion"
}
compileJava {
createOpenApiGenerateClientTask(project, "portal_history_openapi.yaml", "client_portal_history", "PortalHistoryDto")
dependsOn = [':openapi:openApiGenerate_client_portal_history']
}
sourceSets {
main {
java {
srcDirs += file("$buildDir/openapi/src/main/java")
}
}
}
idea {
module {
generatedSourceDirs += file("$buildDir/openapi/src/main/java")
}
}
|