blob: 52017379c15ba6583e44ceaa953e27b19681e702 (
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_prefs_openapi.yaml", "client_portal_prefs", "PortalPrefsDto")
dependsOn = [':openapi:openApiGenerate_client_portal_prefs']
}
sourceSets {
main {
java {
srcDirs += file("$buildDir/openapi/src/main/java")
}
}
}
idea {
module {
generatedSourceDirs += file("$buildDir/openapi/src/main/java")
}
}
|