-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (39 loc) · 1010 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
46
47
buildscript {
repositories {
google()
jcenter()
}
}
plugins {
id 'org.openapi.generator' version '4.3.0'
}
allprojects {
repositories {
google()
jcenter()
}
}
task("generateJavaSdk", type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) {
group = "SDK Generators"
description = "Generates Java code for spec"
generatorName = "java"
validateSpec = true
inputSpec = "petstore.yaml"
outputDir = "./java"
groupId = "com.openapigenerator.sample"
id = "sdk-java"
packageName = "com.openapigenerator.sample.sdk"
apiPackage = "com.openapigenerator.sample.api"
invokerPackage = "com.openapigenerator.sample.client"
modelPackage = "com.openapigenerator.sample.dto"
generateModelTests = false
generateModelDocumentation = false
generateApiTests = false
}
task dumpScriptClasspath {
group = "SDK Generators"
description = "Dumps buildscript classpath to console"
doLast {
buildscript.configurations.classpath.each { println it }
}
}