-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
39 lines (34 loc) · 1.69 KB
/
build.gradle
File metadata and controls
39 lines (34 loc) · 1.69 KB
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
plugins {
id 'org.springframework.boot' version '2.3.3.RELEASE' /* starter 생성 시 spring-boot version */
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
group = 'hello'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11' /* java version */
repositories {
mavenCentral() /* repo url */
}
/* spring-boot-devtools : java -jar로 실행될 때는 운영 시스템으로 간주하고 devtools가 비활성화 된다.*/
//configurations {
// developmentOnly
// runtimeClasspath {
// extendsFrom developmentOnly
// }
//}
dependencies { /* libraries */
// developmentOnly("org.springframework.boot:spring-boot-devtools") /* spring-dev-tools */
// runtimeOnly 'org.springframework.boot:spring-boot-devtools' /* spring-dev-tools (참고: https://hagome.tistory.com/21 ) */
compile("org.springframework.boot:spring-boot-devtools") /* spring-dev-tools ( 참고: https://haviyj.tistory.com/11 ) */
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' /* thymeleaf template engine(View) */
implementation 'org.springframework.boot:spring-boot-starter-web' /* spring web project */
// implementation 'org.springframework.boot:spring-boot-starter-jdbc' /* jdbc api (java는 기본적으로 db랑 붙으려면 jdbc 드라이버가 꼭 있어야 연동됨) */
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' /* jpa (jdbc 다 포함됨) */
runtimeOnly 'com.h2database:h2' /* h2 database (db랑 붙을때 db가 제공하는 client가 필요한데, h2를 사용) */
testImplementation('org.springframework.boot:spring-boot-starter-test') { /* junit5 (default) */
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
test {
useJUnitPlatform()
}