-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
41 lines (32 loc) · 981 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
plugins {
id 'base'
id 'com.intershop.gradle.version.gitflow' version '1.7.5'
id 'org.openapi.generator' version '6.3.0'
}
group = 'cern.accsoft.dtrack.bash'
openApiValidate {
inputSpec = "$rootDir/src/main/resources/openapi/dependency-track.json".toString()
}
openApiGenerate {
generatorName = "bash"
inputSpec = "$rootDir/src/main/resources/openapi/dependency-track.json".toString()
outputDir = "$buildDir/generated".toString()
configOptions = [
generateBashCompletion : 'true'
,generateZshCompletion : 'true'
,hostEnvironmentVariable : "DTRACK_HOST"
,apiKeyAuthEnvironmentVariable: "DTRACK_APIKEY"
,basicAuthEnvironmentVariable: "DTRACK_CREDS"
,scriptName : "dtrack"
]
}
gitflowVersion {
versionType = "three"
defaultVersion = "1.0.0"
mainBranch = "main"
developBranch = "develop"
hotfixPrefix = "hotfix"
featurePrefix = "feature"
releasePrefix = "release"
}
version = gitflowVersion.version