-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
48 lines (36 loc) · 1.17 KB
/
build.gradle
File metadata and controls
48 lines (36 loc) · 1.17 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
plugins {
id 'java'
id 'application'
}
group 'org.robey'
version '1.0-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
application {
mainClass = 'org.robey.shutdown_hook_limit.App'
// simple JVM arg to log GC info to console
//applicationDefaultJvmArgs = ['-verbose:gc']
// Use Xlog framework to log GC details to a file that can be rotated
// Details: https://www.oracle.com/webfolder/technetwork/tutorials/obe/java/tutorial-Xlog/html/index.html
//applicationDefaultJvmArgs = ['-Xlog:gc*,classhisto*=trace:file=/usr/src/app/gc.log:uptime,time,tags,level:filecount=1,filesize=4M']
// Use Xlog framework to log GC details to the console
applicationDefaultJvmArgs = ['-Xlog:gc=info:stdout:uptime,time,tags,level']
}
//jar {
// manifest {
// attributes(
// 'Main-Class': 'org.robey.shutdown_hook_limit.App'
// )
// }
//}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'org.springframework.boot:spring-boot-starter-web:3.4.1'
testImplementation group: 'junit', name: 'junit', version: '4.12'
}