-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
102 lines (81 loc) · 2.74 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
plugins {
id 'org.springframework.boot' version '2.5.0'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id "io.freefair.lombok" version "5.3.3.3"
}
group = 'com.michalz'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
integrationTestImplementation.extendsFrom testImplementation
}
repositories {
mavenCentral()
}
ext {
set('testcontainersVersion', "1.15.3")
}
dependencies {
//AWS
implementation platform('software.amazon.awssdk:bom:2.16.68')
implementation 'software.amazon.awssdk:aws-core'
implementation 'software.amazon.awssdk:s3'
implementation 'software.amazon.awssdk:sqs'
//Spring
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.cloud:spring-cloud-aws-messaging:2.2.6.RELEASE'
//Other
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
//Tests
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:localstack'
testAnnotationProcessor 'org.projectlombok:lombok'
integrationTestCompile 'org.springframework.boot:spring-boot-starter-test'
integrationTestImplementation 'org.springframework.boot:spring-boot-starter-webflux'
integrationTestImplementation 'org.awaitility:awaitility'
integrationTestImplementation 'org.assertj:assertj-core:3.20.2'
}
dependencyManagement {
imports {
mavenBom "org.testcontainers:testcontainers-bom:${testcontainersVersion}"
}
}
sourceSets {
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/intTest/java')
}
resources.srcDir file('src/intTest/resources')
}
}
task integrationTest(type: Test) {
useJUnitPlatform()
description = 'Runs integration tests.'
group = 'verification'
setTestClassesDirs(sourceSets.integrationTest.output)
classpath = sourceSets.integrationTest.runtimeClasspath
check.dependsOn(it)
testLogging {
events "passed", "skipped", "failed"
showStackTraces true
showCauses true
showExceptions true
showStandardStreams true
exceptionFormat "full"
}
}
test {
useJUnitPlatform()
}