-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
41 lines (36 loc) · 1 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
38
39
40
41
plugins {
id 'org.springframework.boot' version '2.5.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'org.openapi.generator' version '5.2.1'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'io.springfox:springfox-swagger2:3.0.0'
}
test {
useJUnitPlatform {
}
}
openApiGenerate {
generatorName = "spring"
inputSpec = "$projectDir/src/main/resources/api.yml"
outputDir = "$projectDir"
apiPackage = "alwaysbemark.example.api"
modelPackage = "alwaysbemark.example.model"
configOptions = [
interfaceOnly: "true",
openApiNullable: "false",
skipDefaultInterface: "true"
]
globalProperties = [
apis: "",
models: ""
]
}
compileJava.dependsOn tasks.openApiGenerate
processResources.dependsOn tasks.openApiGenerate