-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
33 lines (26 loc) · 1.32 KB
/
build.gradle
File metadata and controls
33 lines (26 loc) · 1.32 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
plugins { // 프로젝트에 사용할 스프링 부트와 스프링 플러그인 의존성 관리
id 'java'
id 'org.springframework.boot' version '3.0.2'
id 'io.spring.dependency-management' version '1.1.0'
}
// group에는 프로젝트를 생성할 때의 기입한 기본값으로 세팅, 프로젝트 버전
group = 'com.itschool'
version = '1.0-SNAPSHOT'
sourceCompatibility = '17' // 컴파일 시 자바 버전 17
// 의존성을 받을 저장소
repositories {
mavenCentral() // maven repository
}
// 프로젝트를 개발하며 필요한 기능의 의존성을 관리
dependencies {
// spring-boot-starter는 의존성이 모여있는 그룹 (필요한 기능을 간편하게 설정)
// 스타터는 spring-boot-starter-{작업유형}이라는 명명 규칙 존재
// Spring MVC를 사용해서 RESTful 웹 서비스를 개발할 때 필요한 의존성 모음
implementation 'org.springframework.boot:spring-boot-starter-web'
// 스프링 애플리케이션을 테스트하기 위해 필요한 의존성 모음
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// 이외에도 자주 사용하는 스타터 : data-jpa(ORM, JPA를 더 쉽게 사용하기 위한 의존성), validation(유효성 검사), actuator(모니터링용)
}
test {
useJUnitPlatform()
}