* ์ฝ๋์ ์ดํด
buildscript {
/*
* ext: ์ ์ญ๋ณ์๋ฅผ ์ค์ ํ๊ฒ ๋ค.
* 'springBootVersion' ์ด๋ผ๋ ์ ์ญ๋ณ์์ ๊ฐ์ '2.1.7 RELEASE' ์ด๋ค.
* */
ext {
springBootVersion = '2.1.7.RELEASE'
}
repositories {
mavenCentral()
/*
* jcenter(): ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์
๋ก๋ ๋๋ฌธ์ ์ฌ์ฉํ๋ค.
* mavenCenteral์ ์ฌ๋ฆฐ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋ฒ์ ์
๋ก๋๊ฐ ํ์ํ ๋, jcenter()์ด ํ์ํ๋ค.
* 2022๋
1์๋ถํฐ ๊ฒฐํจ ํด๊ฒฐ์ ์ํด ๋์ด์ ์ฌ์ฉํ ์ ์๋ค.
* jcenter()์ maven์ผ๋ก ๋ง์ด๊ทธ๋ ์ด์
ํด์ผํ๋ค.
* */
// 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 'com.jojoldu.book'
version '1.0-SNAPSHOT'
// ๊ฐ์ข
์์กด์ฑ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ์ด๋ค ์๊ฒฉ ์ ์ฅ์์์ ๋ฐ์ ๊ฒ์ธ์ง๋ฅผ ์ ํ๋ค.
repositories {
mavenCentral()
// jcenter() // ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์
๋ก๋ ๋์ด๋ ๋๋ฌธ์ jcenter๋ deprecated
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
test {
useJUnitPlatform()
}
/* ์ ๋๋ฒ repositories, dependencies์ ์ฌ์ฉํ ๊น?
buildscipt๋ Gradle ์์ฒด๋ฅผ ์ํ ์ํ๋ฐฉ๋ฒ
all projects๋ Gradle์์ ๋น๋ํ๋ ๋ชจ๋์ ์ํ ๊ฒ
*/
* ์คํ ํ ๋น๋๋ ๊ฒฐ๊ณผ๋ฅผ ํ์ธํ ์ ์๋ค.
'TIL > Spring' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Error] IllegalStateException: @Order on WebSecurityConfigurers must be unique ์๋ฌ (0) | 2022.07.28 |
---|---|
[Error] application.yml ์ ์ ์ํ ๊ฐ ์ธ์ํ์ง ๋ชปํ ๊ฒฝ์ฐ (0) | 2022.07.23 |
.properties์ .yml ์ฐจ์ด (0) | 2022.07.19 |
Gradle vs. Maven (0) | 2022.06.23 |
๋๊ธ