-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (69 loc) · 2.4 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
plugins {
id 'java'
id 'groovy'
id 'application'
id 'org.springframework.boot' version '3.4.0'
}
apply plugin: 'idea'
apply plugin: 'io.spring.dependency-management'
repositories {
mavenCentral()
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
dependencies {
implementation 'com.machinezoo.noexception:noexception:1.9.1'
implementation 'one.util:streamex:0.8.3'
implementation "org.apache.commons:commons-lang3:3.17.0"
implementation "org.springframework.retry:spring-retry"
implementation "org.springframework.boot:spring-boot-starter-web"
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation "org.springframework.boot:spring-boot-configuration-processor"
implementation 'com.github.f4b6a3:ulid-creator:5.2.3'
implementation 'com.github.ben-manes.caffeine:caffeine:3.1.8'
implementation 'com.bucket4j:bucket4j-core:8.10.1'
implementation "com.google.guava:guava:33.2.1-jre"
implementation("commons-validator:commons-validator:1.9.0") {
exclude module: "commons-logging"
}
testImplementation 'com.h2database:h2:2.3.232'
testImplementation 'net.datafaker:datafaker:2.4.0'
testImplementation 'com.tngtech.archunit:archunit:1.3.0'
testImplementation "org.springframework.boot:spring-boot-test"
testImplementation "org.springframework.boot:spring-boot-test-autoconfigure"
testImplementation 'org.spockframework:spock-core:2.4-M4-groovy-4.0'
testImplementation 'org.spockframework:spock-spring:2.4-M4-groovy-4.0'
testImplementation 'org.apache.groovy:groovy:4.0.23'
testImplementation 'org.apache.groovy:groovy-json:4.0.23'
testImplementation 'com.google.guava:guava-testlib:33.3.1-jre'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(23)
}
}
test {
def testDurations = [:]
useJUnitPlatform()
testLogging {
events "passed", "failed"
}
afterTest { descriptor, result ->
def name = "${descriptor.className} > ${descriptor.name}" as String
def ms = result.endTime - result.startTime
testDurations.put name, ms
}
doLast {
println "🐌 Slowest tests (the slowest test(s) are likely the ones that load the Spring Context):"
testDurations
.sort { -it.value }
.take(5)
.each { println "${it.value}ms: $it.key" }
}
}