-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
43 lines (36 loc) · 1.07 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
42
apply plugin: 'java'
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'se.bjurr.gradle:gradle-scripts:2.+'
classpath 'org.openapitools:openapi-generator-gradle-plugin:5.4.0'
}
}
apply from: project.buildscript.classLoader.getResource('main.gradle').toURI()
dependencies {
compile 'io.swagger:swagger-annotations:1.5.3'
compile 'javax.ws.rs:javax.ws.rs-api:2.1.1'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.9.9'
compile 'com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.9.9'
compile 'javax.validation:validation-api:2.0.1.Final'
}
apply plugin: 'org.openapi.generator'
openApiGenerate {
generatorName = "jaxrs-spec"
skipOverwrite = false
inputSpec = "$rootDir/openapi.yml".toString()
validateSpec = false
skipValidateSpec = true
outputDir = "$rootDir".toString()
apiPackage = "se.bjurr.bitbucketcloud.gen.api"
modelPackage = "se.bjurr.bitbucketcloud.gen.model"
configOptions = [
interfaceOnly: "true",
generatePom: "false",
useJackson: "true"
]
}
compileJava.dependsOn 'openApiGenerate'