μ€νλ§ λΆνΈ 3.xx λΉλ μ€λ₯ (Could not resolve org.springframework.boot:spring-boot-dependencies:3.0.5.)
μ€νλ§ λΆνΈ ν΅μ¬ μ리 μ νμ© κ°μλ₯Ό λ£λ€κ° μ΄μ μ€νλ§λΆνΈ 3μ λλ₯Ό μ¬μ©ν΄μ μμ μ μ§ννκΈ° λλ¬Έμ
μλ° 17λ μ΄λ°μ μ€μΉνμλ€.. (μ€νλ§λΆνΈ 3λΆν°λ μλ° 17μ΄μμ΄μ΄μΌ νλ€.)
κ·Έλ¦¬κ³ μ΄μ μ€νλ§ λΆνΈ νλ‘μ νΈλ₯Ό μμ±ν΄μ νλ‘μ νΈλ₯Ό λΉλνλλ° ...
Execution failed for task ':dependencies'.
> Could not resolve all dependencies for configuration ':detachedConfiguration1'.
> Could not resolve org.springframework.boot:spring-boot-dependencies:3.0.5.
Required by:
project :
> Could not resolve org.springframework.boot:spring-boot-dependencies:3.0.5.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-dependencies/3.0.5/spring-boot-dependencies-3.0.5.pom'.
> Could not HEAD 'https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-dependencies/3.0.5/spring-boot-dependencies-3.0.5.pom'.
> repo.maven.apache.org
Unknown host 'repo.maven.apache.org'. You may need to adjust the proxy settings in Gradle.
μκΎΈ μ΄λ° μ€λ₯κ° λλ©΄μ λΉλ μ€ν¨νλ€..
μ°μ ν΄κ²° λ°©λ²μ€μ μ€νλ§ λΆνΈ 3 μ΄ μλ 2μ λλ‘ λ΄λ¦¬λ©΄ λΉλ μ±κ³΅νλ€κ³ νμ§λ§..
λλ μ§κΈ μ€νλ§ λΆνΈ 3μ λμμ κ°μλ₯Ό λ£κ³ 곡λΆν΄μΌνκΈ° λλ¬Έμ ν΄κ²° λ°©λ²μ΄ μλμλ€.
ꡬκΈλ§ν΄λ³΄λκΉ μλ° λ²μ λ¬Έμ λΌλ μκΈ°κ° λ§μμ
μλ° 17λ λ€μ μ€μΉλ ν΄λ³΄κ³ ...
μΈν 리μ μ΄μ μλ° 17λ‘ μΈν λμ§ μμμ κ²½μ°λ μλ€κ³ ν΄μ
λͺ¨λ μλ° 17λ‘ μΈν λ ν΄μ€¬λ€..
κ·Έ λ€μμΌλ‘ λ°κ²¬ν λ°©λ²μΌλ‘ build.gradleμ
sourceCompatibility = '17'
μ΄κ² μμ΄μ μΌμλ μλ€νμ§λ§ λλ μμ΄μ ν΄κ²°λ°©λ²μ΄ μλμλ€..
κ·Έλ¬λ€ μ§μ§ μ°μ°ν ꡬκΈλ§νλ€κ° ...
mavenCentral() vs jcenter() κ°λ λ° μ°¨μ΄μ
μλμ κ°μ΄ springboot gradle νλ‘μ νΈλ₯Ό μμ μ€μ build.gradle μ€μ μ ν΄μ£Όμμ΅λλ€. λ¬Έλ mavenCentral() κ³Ό jcenter() λ κ°μ μ°¨μ΄μ μ 무μμ΄κ³ μ μ€μ ν΄μ£Όλ κ²μΈκ°μ λν κ·Όλ³Έμ μΈ μ΄μ μ λν΄μ
ssons.tistory.com
μ¬κΈ°μ mavenCentral() vs jcenter() μ΄λ° κΈμ λ°κ²¬νκ³ .. νΉμ? ν΄μ
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.5'
id 'io.spring.dependency-management' version '1.1.0'
}
group = 'hello'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}
jcenter() λ₯Ό μΆκ°ν΄λ΄€λλ build μ±κ³΅νλ€..????? λμ§????
μμ κΈμμ μ€λͺ νκΈ°λ‘λ μ°μ repositories λ κ°μ’ μμ‘΄μ± (λΌμ΄λΈλ¬λ¦¬) λ€μ μ΄λ€ μ격 μ μ₯μμμ λ°μ κ²μΈμ§λ₯Ό μ ν΄μ€λ€.
mavenCentral()κ³Ό jcenter()λ Android Studio μ Gradle νλ¬κ·ΈμΈ μ© μ μ₯μλΌκ³ νλ€.
λ³΄ν΅ mavenCentral()μ λ§μ΄ μ¬μ©νκ³ jcenter()λ μ§μ μ€λ¨λλ€κ³ νλλ° μ μ΄κ±Έ λΆμ΄λκΉ λΉλ μ±κ³΅νλμ§λ μμ§ μ λͺ¨λ₯΄κ² λ€..
ꡬκΈλ§ν΄λ΄λ κ΄λ ¨ λ΄μ©μ΄ λμ€μ§λ μμμ.. μ°μ ν΄κ²°μ νμΌλ μμ±μ νμ§λ§ μμΈκ³Ό μ΄μ νμ μ΄ μλΌμ...
λμ€μ μ°Ύκ² λλ€λ©΄ λ΄μ© μΆκ°λ₯Ό ν΄μΌκ² λ€. ..π