-
-
Notifications
You must be signed in to change notification settings - Fork 632
/
build.gradle
54 lines (46 loc) · 1.72 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
43
44
45
46
47
48
49
50
51
52
53
54
plugins {
id('groovy')
id('org.jreleaser').version('1.4.0').apply(false)
}
String userHome = System.getProperty('user.home')
ext.installBinDir = "${userHome}/.sdkman/bin"
ext.installSrcDir = "${userHome}/.sdkman/src"
ext.installContribDir = "${userHome}/.sdkman/contrib"
ext.environment = hasProperty('env') ? env : 'local'
ext.hash = hasProperty('hash') ? hash : 'hashme'
ext.release = hasProperty('release') ? release : 'latest'
if ("$environment" == 'stable') {
ext.candidatesApi = 'https://api.sdkman.io/2'
} else if ("$environment" == 'beta') {
ext.candidatesApi = 'https://beta.sdkman.io/2'
} else {
ext.candidatesApi = 'http://localhost:8080/2'
}
ext.sdkmanVersion = ext.release == 'latest' ? "latest+${ext.hash}".toString() : ext.release
println("Environment is set to: $environment")
println("Short git hash: $hash")
println("Release set to: $release")
println("Candidates API: $candidatesApi")
println("Version: $sdkmanVersion")
apply from: 'gradle/archive.gradle'
apply from: 'gradle/release.gradle'
repositories {
mavenCentral()
}
dependencies {
testImplementation('com.github.tomakehurst:wiremock:2.27.2') {
exclude module: 'junit'
}
testImplementation('io.cucumber:cucumber-groovy:4.7.1')
testImplementation('io.cucumber:cucumber-junit:4.7.4')
testImplementation('io.cucumber:gherkin:5.2.0')
testImplementation('junit:junit:4.13.2')
testImplementation('org.codehaus.groovy:groovy:2.4.21')
testImplementation('org.codehaus.groovy:groovy-json:2.4.21')
testImplementation('org.codehaus.groovy:groovy-templates:2.4.21')
testImplementation('org.slf4j:slf4j-api:1.7.32')
testImplementation('org.slf4j:slf4j-simple:1.7.32')
testImplementation('org.spockframework:spock-core:1.3-groovy-2.4') {
exclude module: 'groovy-all'
}
}