• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

build.gradle을 변경하면 오류가 납니다. 이유가 뭘까요?

24.04.08 10:22 작성 조회수 139

0

validation 프로젝트 진행 중 build.gradle을 아래와 같이 변경하면 그래들 빌드 오류가 납니다.

다른 프로젝트들을 진행할 때는 문제가 없었는데 이유가 뭘까요?

A problem occurred configuring root project 'validation'.

> Could not resolve all artifacts for configuration ':classpath'.

> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.2.4.

Required by:

project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.2.4

 

plugins {
  id 'java'
  id 'org.springframework.boot' version '3.2.4'
  id 'io.spring.dependency-management' version '1.1.4'
}

group = 'test'
version = '0.0.1-SNAPSHOT'

java {
  sourceCompatibility = '17'
}

configurations {
  compileOnly {
   extendsFrom annotationProcessor
  }
}

repositories {
  mavenCentral()
}

dependencies {
  implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
  implementation 'org.springframework.boot:spring-boot-starter-web'
  compileOnly 'org.projectlombok:lombok'
  annotationProcessor 'org.projectlombok:lombok'
  testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

tasks.named('test') {
  useJUnitPlatform()
}

 

 

 

답변 1

답변을 작성해보세요.

0

David님의 프로필

David

2024.04.09

안녕하세요. jfk6725님, 공식 서포터즈 David입니다.

아래 질문 답변 확인 부탁드립니다.

https://www.inflearn.com/questions/1232895

감사합니다.