-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (57 loc) · 2.1 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
plugins {
id 'org.springframework.boot' version '2.6.4'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id "com.diffplug.spotless" version "6.8.0"
}
group = 'com.bettercloud'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
sourceSets {
integrationTest {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
java {
srcDirs('integrationTest') // use function to append instead of overwrite srcdirs
}
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
integrationTestImplementation.extendsFrom(implementation)
integrationTestImplementation.extendsFrom(testImplementation)
integrationTestRuntimeOnly.extendsFrom(runtimeOnly)
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.kafka:spring-kafka'
implementation 'org.projectlombok:lombok'
implementation 'io.micrometer:micrometer-registry-prometheus:1.9.0'
annotationProcessor 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.kafka:spring-kafka-test'
// IntegrationTest deps
integrationTestAnnotationProcessor 'org.projectlombok:lombok'
integrationTestImplementation('io.cucumber:cucumber-java:7.+')
integrationTestImplementation('io.cucumber:cucumber-junit:7.+')
integrationTestImplementation('io.cucumber:cucumber-spring:7.+')
integrationTestImplementation('com.github.tomakehurst:wiremock-jre8:2.+')
integrationTestImplementation('org.awaitility:awaitility:4.2.0')
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.register('integrationTest', Test) {
description = "Runs integration tests"
group = 'verification'
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
shouldRunAfter test
}
check.dependsOn integrationTest