-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
159 lines (135 loc) · 4.7 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.10'
id 'io.spring.dependency-management' version '1.1.6'
id "org.asciidoctor.jvm.convert" version "3.3.2"
id 'com.epages.restdocs-api-spec' version '0.16.2'
id 'org.hidetake.swagger.generator' version '2.19.2'
id 'jacoco'
id 'org.ec4j.editorconfig' version '0.0.3'
id 'checkstyle'
id 'org.jetbrains.kotlin.jvm' version '1.8.0'
id 'org.jlleitschuh.gradle.ktlint' version '12.1.0'
id 'org.jetbrains.kotlin.kapt' version '1.8.0'
id 'org.jetbrains.kotlin.plugin.lombok' version '1.8.0'
}
jacoco {
toolVersion = "0.8.10"
}
subprojects {
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.springframework.boot'
apply plugin: 'org.asciidoctor.jvm.convert'
apply plugin: 'jacoco'
apply plugin: 'org.ec4j.editorconfig'
/**
* 코틀린
*/
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.kotlin.jvm'
/**
* 코틀린에서 Java의 롬복 사용
* (코틀린 클래스의 적용이 아닌 롬복이 적용된 Java 클래스를 사용하기 위함)
*/
apply plugin: 'org.jetbrains.kotlin.kapt'
apply plugin: 'org.jetbrains.kotlin.plugin.lombok'
/**
* 코드 컨벤션
*/
apply plugin: 'org.jlleitschuh.gradle.ktlint'
apply plugin: 'checkstyle'
repositories {
mavenCentral()
}
kapt {
keepJavacAnnotationProcessors = true
showProcessorStats = true
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'io.github.microutils:kotlin-logging:3.0.5'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'com.epages:restdocs-api-spec-mockmvc:0.16.2'
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.mysql:mysql-connector-j'
testImplementation 'io.findify:s3mock_2.13:0.2.6'
// 캐싱 관련
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'com.github.ben-manes.caffeine:caffeine'
// @mwiede의 포크 버전 jsch 추가 - ssh 터널링을 통한 DB 접속
implementation 'com.github.mwiede:jsch:0.2.21'
/**
* 시큐리티 관련
*/
/*
로그인 관련
*/
implementation 'org.springframework.boot:spring-boot-starter-security'
// Cognito
implementation 'software.amazon.awssdk:cognitoidentityprovider:2.20.66'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.security:spring-security-oauth2-jose'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
/**
* jpa
**/
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
}
println("root Directory : ${rootDir}")
checkstyle {
maxWarnings = 0
configFile = file("${rootDir}/config/naver-checkstyle-rules.xml")
configProperties = ["suppressionFile": "${rootDir}/config/naver-checkstyle-suppressions.xml"]
toolVersion = "8.42"
}
tasks.named('test') {
useJUnitPlatform()
}
jacocoTestReport {
dependsOn test
reports {
html.required = true
xml.required = true
}
}
jacocoTestCoverageVerification {
violationRules {
rule {
enabled = true
element = 'CLASS'
limit {
counter = 'LINE'
value = 'COVEREDRATIO'
}
excludes = [
"com.server.computer_science.**.**",
"**.*Application*",
"**.*Config*",
"**/domain",
"**/*Interceptor*",
"**/*Exception*"
]
}
}
}
group = 'com.study.computer-science'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
kotlin {
jvmToolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
}
bootJar.enabled = false
jar.enabled = false