-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
107 lines (85 loc) · 3.45 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.2'
id 'io.spring.dependency-management' version '1.1.4'
id 'org.ec4j.editorconfig' version '0.1.0'
id 'checkstyle'
id("com.palantir.docker") version "0.36.0"
}
docker {
name "${project.group}/${project.name}:${project.version}"
files jar.outputs.files
buildArgs(['JAR_FILE': "${project.name}-${project.version}.jar"])
}
editorconfig {
excludes = ['build']
}
check.dependsOn editorconfigCheck // checkstyle이 설정 되어 있을 시, editorconfigCheck 후 checkstyle 진행
checkstyle {
maxWarnings = 0
configFile = file("${rootDir}/config/naver-checkstyle-rules.xml")
configProperties = ["suppressionFile": "${rootDir}/config/naver-checkstyle-suppressions.xml"]
toolVersion = "8.42"
}
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
group = 'mejai'
//version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
jar {
enabled = false
}
//for lombok config
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.9.0'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-hibernate5-jakarta'
implementation 'org.postgresql:postgresql:42.7.2'
compileOnly 'org.projectlombok:lombok'
annotationProcessor('org.projectlombok:lombok')
// only apple silicon
runtimeOnly 'io.netty:netty-resolver-dns-native-macos:4.1.104.Final:osx-aarch_64'
// test
testImplementation 'org.springframework.boot:spring-boot-starter-test' // includes JUnit 5
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
runtimeOnly 'com.h2database:h2'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
// Querydsl 추가
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
// mapstruct 추가
implementation 'org.mapstruct:mapstruct:1.5.5.Final'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final'
testAnnotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final' // if you are using mapstruct in test code
// feign
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign:4.1.0'
// retry
implementation("org.springframework.retry:spring-retry")
implementation("org.springframework:spring-aspects")
// swagger
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
// sqs
implementation platform("io.awspring.cloud:spring-cloud-aws-dependencies:3.0.1")
implementation 'io.awspring.cloud:spring-cloud-aws-starter-sqs:3.2.0-M1'
implementation 'io.hypersistence:hypersistence-utils-hibernate-63:3.8.3'
implementation 'io.jsonwebtoken:jjwt:0.12.6'
}
tasks.named('test') {
useJUnitPlatform()
}