-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
126 lines (98 loc) · 3.37 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
buildscript {
ext {
queryDslVersion = "5.0.0"
}
}
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.14'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}
group = 'project'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
//H2 데이터베이스 추가
runtimeOnly 'com.h2database:h2'
/* 1. web */
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
///* 2. 배포시 내장톰캣을 사용하지 않을거라는 dependency */
// providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
/* 3. lombok */
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
/* 4. devtools */
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
/* 5. thymeleaf */
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
/* 6. mybatis */
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.3'
/* 7. MariaDB */
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
/* 8. JDBC */
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
/* 9. JPA */
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
///* 10-4. querydsl dependencies 추가 */
// implementation "com.querydsl:querydsl-jpa:${queryDslVersion}"
// annotationProcessor "com.querydsl:querydsl-apt:${queryDslVersion}"
// //querydsl 추가
// implementation "com.querydsl:querydsl-jpa:${queryDslVersion}"
// implementation "com.querydsl:querydsl-apt:${queryDslVersion}"
/* 11. thymeleaf-layout-dialect */
implementation group: 'nz.net.ultraq.thymeleaf', name: 'thymeleaf-layout-dialect', version: '3.0.0'
///* 12. spring-boot-starter-security */
// implementation group: 'org.springframework.boot', name: 'spring-boot-starter-security'
/* 13. validation(Bean Validation) */
implementation 'org.springframework.boot:spring-boot-starter-validation'
/* 14. modelmapper */
implementation group: 'org.modelmapper', name: 'modelmapper', version: '2.3.9'
///* 15. thymeleaf-extras-springsecurity5 */
// implementation group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-springsecurity5'
///* 16. spring-security-test */
// testImplementation group: 'org.springframework.security', name: 'spring-security-test'
/* 17. hibernate5module*/
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-hibernate5'
/* 18. p6spy */
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.5.6'
/* 19.junit */
implementation 'junit:junit:4.13.1'
//JUnit4 추가
testImplementation("org.junit.vintage:junit-vintage-engine") {
exclude group: "org.hamcrest", module: "hamcrest-core"
}
}
tasks.named('test') {
useJUnitPlatform()
}
////querydsl 추가 시작
//def querydslDir = "$buildDir/generated/querydsl"
//
//querydsl {
// jpa = true
// querydslSourcesDir = querydslDir
//}
//sourceSets {
// main.java.srcDir querydslDir
//}
//compileQuerydsl{
// options.annotationProcessorPath = configurations.querydsl
//}
//configurations {
// compileOnly {
// extendsFrom annotationProcessor
// }
// querydsl.extendsFrom compileClasspath
//}
////querydsl 추가 끝