forked from testcontainers/workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
60 lines (47 loc) · 1.63 KB
/
build.gradle
File metadata and controls
60 lines (47 loc) · 1.63 KB
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
plugins {
id "java"
id "org.springframework.boot" version "2.0.2.RELEASE"
}
apply plugin: 'io.spring.dependency-management'
repositories {
jcenter()
}
sourceSets {
acceptanceTest
}
configurations {
acceptanceTestCompile.extendsFrom testCompile
acceptanceTestRuntime.extendsFrom testRuntime
}
dependencyManagement {
imports {
mavenBom 'org.testcontainers:testcontainers-bom:1.8.1'
}
}
dependencies {
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'org.springframework.boot:spring-boot-starter-jdbc'
compile 'org.springframework.boot:spring-boot-starter-webflux'
compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
compile 'org.springframework.boot:spring-boot-starter-data-redis-reactive'
compile 'org.springframework.kafka:spring-kafka'
compile 'org.postgresql:postgresql'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'io.rest-assured:rest-assured:3.1.0'
testCompile 'org.testcontainers:postgresql'
testCompile 'org.testcontainers:kafka'
testCompile 'org.awaitility:awaitility:3.0.0'
acceptanceTestCompile 'org.testcontainers:selenium'
acceptanceTestCompile 'org.seleniumhq.selenium:selenium-java:3.13.0'
testRuntime 'com.h2database:h2'
}
task acceptanceTest(type: Test) {
testClassesDirs = sourceSets.acceptanceTest.output.classesDirs
classpath = sourceSets.acceptanceTest.runtimeClasspath
outputs.upToDateWhen { false }
}
check.dependsOn acceptanceTest
bootJar {
baseName = 'app'
}
sourceSets.acceptanceTest.resources.srcDir jar.outputs.files.singleFile.parentFile