사용자 도구

사이트 도구


wiki:gradle

Members: 하운 | gary | 주레피 | 연목구어 | 김토피아 | 희닝 | 오션 | 천호동밤안개 | 밤즌 | slaptear | heon
Links: 주간회의 | 강의 | REPIA | Rgitlab | 2020 유지보수 리스트

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

/var/services/web/dokuwiki/data/pages/wiki/gradle.txt · 마지막으로 수정됨: 2023/01/21 00:12 저자 dhan