-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
68 lines (54 loc) · 1.94 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
plugins {
id "java"
id "java-library"
id "maven-publish"
id "com.palantir.git-version" version "1.0.0"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
def versionDetails = versionDetails()
version versionDetails.isCleanTag && gitVersion().startsWith("release/")
? gitVersion().substring("release/".length())
: System.currentTimeMillis() + "-SNAPSHOT"
println "Build version $version"
apply from: "${rootProject.projectDir}/publishing.gradle"
apply from: "${rootProject.projectDir}/signing.gradle"
apply from: "${rootProject.projectDir}/codegen.gradle"
ext {
testcontainersVersion = "1.20.4"
junitVersion = "5.11.4"
}
dependencies {
api "org.testcontainers:testcontainers:$testcontainersVersion"
implementation "org.bouncycastle:bcpkix-jdk18on:1.79"
testImplementation "org.testcontainers:junit-jupiter:$testcontainersVersion"
testImplementation "io.fabric8:kubernetes-client:6.8.0"
testImplementation "org.awaitility:awaitility:4.2.2"
testImplementation "org.mockito:mockito-core:4.11.0"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
testImplementation 'com.sparkjava:spark-core:2.9.4'
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:$junitVersion"
testRuntimeOnly "ch.qos.logback:logback-classic:1.2.13"
}
java {
withJavadocJar()
withSourcesJar()
}
test {
// suppress completely stupid stacktrace dump by fabric8
systemProperty "kubernetes.disable.autoConfig", "true"
environment 'TESTCONTAINERS_REUSE_ENABLE', 'true'
if(System.getenv("CONTAINER_FILTER")) {
environment 'CONTAINER_FILTER', System.getenv("CONTAINER_FILTER")
}
useJUnitPlatform()
testLogging {
showStandardStreams = true
}
}