-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
77 lines (67 loc) · 2.15 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
plugins {
id 'org.springframework.boot' version '3.4.2'
id 'io.spring.dependency-management' version '1.1.7'
id 'java'
id 'com.github.ben-manes.versions' version '0.51.0'
id "org.ec4j.editorconfig" version "0.1.0"
}
group = 'com.glinboy'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_23
targetCompatibility = JavaVersion.VERSION_23
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
ext {
modelMapperVersion = '3.2.2'
riderJunitVersion = '1.44.0'
openapiVersion = '2.7.0'
}
defaultTasks "bootRun"
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation('org.springframework.boot:spring-boot-starter-web') {
exclude module: 'spring-boot-starter-tomcat'
}
implementation "org.springframework.boot:spring-boot-starter-undertow"
implementation 'org.flywaydb:flyway-core'
implementation "org.modelmapper:modelmapper:${modelMapperVersion}"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${openapiVersion}"
implementation 'org.hibernate.validator:hibernate-validator'
compileOnly "org.projectlombok:lombok"
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor "org.projectlombok:lombok"
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation "com.github.database-rider:rider-junit5:${riderJunitVersion}"
}
tasks.withType(JavaCompile) {
options.compilerArgs = [
'-Amapstruct.suppressGeneratorTimestamp=true'
]
}
bootRun {
jvmArgs = ['-XX:+UseZGC',
'-Xlog:gc*:file=log/linkshorter.gc.log',
'-XX:+HeapDumpOnOutOfMemoryError',
'-XX:HeapDumpPath=log/crashes/linkshorter.hprof',
'-Xss256k',
'-Dsun.net.client.defaultConnectTimeout=2000',
'-Dsun.net.client.defaultReadTimeout=2000'
]
}
test {
systemProperty 'spring.profiles.active', 'test'
testLogging.showStandardStreams = true
useJUnitPlatform()
}