문서의 이전 판입니다!
gradle wrapper 명령어 수행 시 cnanot add task 'wrapper' as a task with that name already exists 오류 발생 시
task wrapper(type:wrapper) {
gradleVersion = '4.4'
distributionUrl = distributionUrl.replace("bin", "all")
}
을 아래와 같이 수정한다.
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = "UTF-8"
repositories {
mavenCentral()
}
dependencies {
compile 'org.springframework:spring-context:5.0.2.RELEASE'
}
wrapper {
gradleVersion = '4.4'
distributionUrl = distributionUrl.replace("bin", "all")
}