-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
87 lines (69 loc) · 2.19 KB
/
build.gradle
File metadata and controls
87 lines (69 loc) · 2.19 KB
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
plugins {
id 'java'
id 'org.springframework.boot' version '3.5.0'
id 'io.spring.dependency-management' version '1.1.7'
// jmh
id "me.champeau.jmh" version "0.7.3"
}
ext {
springAiVersion = "1.0.0"
}
group = 'org.jun'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
// MySQL, H2 DB & JPA
runtimeOnly 'com.mysql:mysql-connector-j'
runtimeOnly 'com.h2database:h2'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
// selenium
// implementation("org.seleniumhq.selenium:selenium-java:4.33.0")
// JSoup
implementation 'org.jsoup:jsoup:1.20.1'
// jmh
jmh 'org.openjdk.jmh:jmh-core:1.37'
jmh 'org.openjdk.jmh:jmh-generator-annprocess:1.37'
jmh 'org.openjdk.jmh:jmh-generator-bytecode:1.37'
// discord
implementation 'net.dv8tion:JDA:5.6.1'
// caffeine cache
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'com.github.ben-manes.caffeine:caffeine'
}
test {
systemProperty "spring.profiles.active", "test"
}
dependencyManagement {
imports {
mavenBom "org.springframework.ai:spring-ai-bom:$springAiVersion"
}
}
tasks.named('test') {
useJUnitPlatform()
}
jmh {
warmupIterations = 2 // 워밍업 반복 횟수
iterations = 5 // 측정 반복 횟수
fork = 1 // 포크 수
failOnError = true
resultFormat = 'JSON' // 결과 포맷
resultsFile = project.file("${project.buildDir}/reports/jmh/results.json") // 결과 파일 위치
timeOnIteration = '1s' // 각 반복당 실행 시간
timeUnit = 'ms' // 시간 단위
includes = ['.*Benchmark.*'] // 벤치마크 클래스 패턴
profilers = ['gc']
}