====== build.gradle error ======
* description : build.gradle error
* author : 오션
* email : shlim@repia.com
* lastupdate : 2021-01-11
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")
}
==== Ref ====
* [[https://stackoverflow.com/questions/53709282/cannot-add-task-wrapper-as-a-task-with-that-name-already-exists|Cannot add task 'wrapper' as a task with that name already exists]]
* [[https://velog.io/@hwany/gradle|Gradle이란??]]
* [[https://jojoldu.tistory.com/372|Spring Boot Data Jpa 프로젝트에 Querydsl 적용하기]]
{{tag> 오션 build.gradle 주레피}}