-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
37 lines (33 loc) · 1.09 KB
/
build.gradle
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
26
27
28
29
30
31
32
33
34
35
36
37
plugins {
id 'com.dorongold.task-tree' version '1.5'
id 'org.openapi.generator' version '4.3.0'
}
openApiValidate {
inputSpec = "$rootDir/openapi.json".toString()
}
openApiGenerate {
generatorName = 'java'
inputSpec = file('openapi.json').absolutePath
outputDir = file('client').absolutePath
templateDir = file('template').absolutePath
invokerPackage = 'com.mwaysolutions.bluerange'
apiPackage = 'com.mwaysolutions.bluerange.api'
modelPackage = 'com.mwaysolutions.bluerange.model'
importMappings = [
AnyValue: 'com.fasterxml.jackson.databind.JsonNode',
JsonNode: 'com.fasterxml.jackson.databind.JsonNode',
Throwable: 'com.fasterxml.jackson.databind.JsonNode',
Exception: 'com.fasterxml.jackson.databind.JsonNode',
ValidationException: 'com.fasterxml.jackson.databind.JsonNode'
]
configOptions = [
java8: 'true',
library: 'native',
dateLibrary: 'java8',
openApiNullable: 'true',
useBeanValidation: 'true',
performBeanValidation: 'false',
useGzipFeature: 'true',
useRuntimeException: 'true'
]
}