-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
97 lines (83 loc) · 3.17 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.10'
id 'io.spring.dependency-management' version '1.1.4'
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'checkstyle'
}
group = 'team.gwon'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
checkstyle {
maxWarnings = 0 // 규칙이 어긋나는 코드가 하나라도 있을 경우 빌드 fail 을 내고 싶다면 이 선언을 추가한다.
configFile = file("${rootDir}/formatter/naver-checkstyle-rules.xml")
configProperties = ["suppressionFile": "${rootDir}/fotmatter/naver-checkstyle-suppressions.xml"]
toolVersion = "8.24" // checkstyle 버전 8.24 이상 선언
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
ext {
set('snippetsDir', file("build/generated-snippets"))
}
dependencies {
implementation group: 'org.apache.poi', name: 'poi-ooxml', version: '5.2.5'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.mysql:mysql-connector-j:8.2.0'
annotationProcessor 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter-test:3.0.3'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'org.springframework.security:spring-security-test'
// uuid
implementation "com.fasterxml.uuid:java-uuid-generator:5.0.0"
// qr
implementation group: 'com.google.zxing', name: 'javase', version: '3.5.1'
implementation group: 'com.google.zxing', name: 'core', version: '3.5.1'
// mail
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-mail', version: '3.0.5'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// db logging
implementation group: 'org.bgee.log4jdbc-log4j2', name: 'log4jdbc-log4j2-jdbc4.1', version: '1.16'
//jackson
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.15.4'
//restassured
testImplementation 'io.rest-assured:rest-assured:5.4.0'
// portOne
implementation 'com.github.iamport:iamport-rest-client-java:0.2.23'
//httpClient
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
}
//protOne
repositories {
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
}
tasks.named('bootBuildImage') {
builder = 'paketobuildpacks/builder-jammy-base:latest'
}
tasks.named('test') {
outputs.dir snippetsDir
useJUnitPlatform()
}
tasks.named('asciidoctor') {
inputs.dir snippetsDir
dependsOn test
}