-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (41 loc) ยท 2.21 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
//ํ๋ก์ ํธ ํ๋ฌ๊ทธ์ธ ์์กด์ฑ ๊ด๋ฆฌ๋ฅผ ์ํ ์ค์
buildscript {
ext { //build.gradle์์ ์ฌ์ฉํ๋ ์ ์ญ๋ณ์ ์ค์
springBootVersion = '2.1.7.RELEASE'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
//์์ ์ ์ธํ ํ๋ฌ๊ทธ์ธ ์์กด์ฑ๋ค ์ ์ฉ ๊ฒฐ์
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management' //์คํ๋ง ๋ถํธ์ ์์กด์ฑ๋ค์ ๊ด๋ฆฌํ๋ ํ๋ฌ๊ทธ์ธ
group 'study'
version '1.0.1-SNAPSHOT-'+new Date().format("yyyyMMddHHmmss")
sourceCompatibility = 1.8
//๊ฐ์ข
์์กด์ฑ(๋ผ์ด๋ธ๋ฌ๋ฆฌ)๋ค์ ์ด๋ค ์๊ฒฉ ์ ์ฅ์์์ ๋ฐ์์ง ๊ฒฐ์
repositories {
mavenCentral()
jcenter()
}
//ํ๋ก์ ํธ ๊ฐ๋ฐ์ ํ์ํ ์์กด์ฑ๋ค ์ ์ธ
dependencies {
//๋ฒ์ ์ ๋ช
์ํ์ง ์์์ผ๋ง ๋งจ ์์ 'org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}'์ ๋ฒ์ ์ ๋ฐ๋ผ๊ฐ
//-> ๊ฐ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๋ฒ์ ๊ด๋ฆฌ๊ฐ ํ ๊ณณ์ ์ง์ค -> ๋ฒ์ ์ถฉ๋ ๋ฌธ์ ํด๊ฒฐ
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.projectlombok:lombok')
compile('org.springframework.boot:spring-boot-starter-data-jpa') //์คํ๋ง ๋ถํธ์ฉ Spring Data Jpa ์ถ์ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ
compile('com.h2database:h2') //์ธ๋ฉ๋ชจ๋ฆฌ ๊ด๊ณํ ๋ฐ์ดํฐ๋ฒ ์ด์ค -> ์ฌ์์ํ ๋๋ง๋ค ์ด๊ธฐํ. ํ
์คํธ ์ฉ๋
compile('org.springframework.boot:spring-boot-starter-mustache')
compile('org.springframework.boot:spring-boot-starter-oauth2-client') //์์
๋ก๊ทธ์ธ ๋ฑ ํด๋ผ์ด์ธํธ ์
์ฅ์์ ์์
๊ธฐ๋ฅ ๊ตฌํ ์ ํ์ -> spring-security-oauth2-client, spring-security-oauth2-jose ๊ธฐ๋ณธ ๊ด๋ฆฌ
compile('org.springframework.session:spring-session-jdbc') //์ธ์
์ ์ฅ์๋ก ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ฌ์ฉ
compile('org.mariadb.jdbc:mariadb-java-client') //mariaDB ๋๋ผ์ด๋ฒ
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('org.springframework.security:spring-security-test') //์คํ๋ง ์ํ๋ฆฌํฐ ํ
์คํธ๋ฅผ ์ํ ์ฌ๋ฌ ๋๊ตฌ ์ง์
}