-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (45 loc) · 1.56 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
plugins {
id 'org.springframework.boot' version '3.0.4'
id 'io.spring.dependency-management' version '1.1.0'
id 'io.freefair.lombok' version '8.0.1'
id 'java'
id 'jacoco'
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
group = 'tech.sledger'
version = '0.3'
repositories {
mavenCentral()
}
dependencies {
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.boot:spring-boot-starter-data-mongodb"
implementation "org.springframework.boot:spring-boot-starter-cache"
implementation "com.github.ben-manes.caffeine:caffeine"
implementation "org.springframework.retry:spring-retry:2.0.1"
implementation "org.springframework:spring-aspects:6.0.7"
def testContainersVersion = '1.17.6'
testImplementation "org.springframework.boot:spring-boot-starter-test"
testImplementation "org.testcontainers:testcontainers:${testContainersVersion}"
testImplementation "org.testcontainers:junit-jupiter:${testContainersVersion}"
testImplementation "org.testcontainers:mongodb:${testContainersVersion}"
}
tasks.named("jar") {enabled = false }
tasks.withType(Test) { useJUnitPlatform() }
test {
finalizedBy jacocoTestReport
jacoco { excludes = [ 'tech.sledger.investments.model.*' ] }
}
jacocoTestReport {
dependsOn test
afterEvaluate {
getClassDirectories().setFrom(classDirectories.files.collect {
fileTree(dir: it, exclude: [ '**/tech/sledger/investments/model/**' ])
})
}
reports { xml.enabled true }
}