-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (36 loc) · 946 Bytes
/
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
42
43
44
45
plugins {
id "org.openapi.generator" version "${openApiGeneratorVersion}"
id 'java'
}
openApiGenerate {
generatorName = "spring"
inputSpec = "${project.projectDir}/src/main/resources/swagger-testing.yaml".toString()
outputDir = "${project.buildDir}/generated".toString()
skipOverwrite = false
}
group = 'io.github.flozano.openapireproduce'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs 'build/generated/src/main/java'
}
}
test {
java {
srcDirs 'build/generated/src/test/java'
}
}
}
compileJava.dependsOn tasks.openApiGenerate
dependencies {
implementation group: 'org.openapitools', name: 'jackson-databind-nullable', version: '0.2.6'
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}