forked from Gtomika/spring-boot-testing-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (44 loc) · 1.48 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.4'
id 'org.unbroken-dome.test-sets' version '4.1.0'
}
apply plugin: 'io.spring.dependency-management'
group = 'com.epam.gaspar'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
testSets {
//unitTest is added by default by the Java plugin
integrationTest
}
tasks.withType(Test) {
useJUnitPlatform()
}
def mapstructVersion = '1.5.5.Final'
def testcontainersVersion = '1.19.0'
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'org.postgresql:postgresql'
//alert: Lombok must be before Mapstruct
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation "org.mapstruct:mapstruct:${mapstructVersion}"
annotationProcessor "org.mapstruct:mapstruct-processor:${mapstructVersion}"
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
integrationTestImplementation "org.testcontainers:testcontainers:${testcontainersVersion}"
integrationTestImplementation "org.testcontainers:postgresql:${testcontainersVersion}"
integrationTestImplementation "org.testcontainers:junit-jupiter:${testcontainersVersion}"
}