2017-12-10 11 views
0

그라디언트 파일에 Lombock을 추가했으나 그라빌을 빌드하는 데 문제가 있습니다.그라디언트 파일에 Lombock의 종속성을 추가하면 빌드되지 않습니다.

buildscript { 
ext { 
    springBootVersion = '2.0.0.M7' 
} 
repositories { 
    mavenCentral() 
    maven { url "https://repo.spring.io/snapshot" } 
    maven { url "https://repo.spring.io/milestone" } 
} 
dependencies { 
    classpath("org.springframework.boot:spring-boot-gradle- 
plugin:${springBootVersion}") 
    } 
} 
    apply plugin: 'java' 
    apply plugin: 'eclipse' 
    apply plugin: 'org.springframework.boot' 
    apply plugin: 'io.spring.dependency-management' 

    group = 'com.crud' 
    version = '0.0.1-SNAPSHOT' 
    sourceCompatibility = 1.8 

    repositories { 
     mavenCentral() 
     maven { url "https://repo.spring.io/snapshot" } 
     maven { url "https://repo.spring.io/milestone" } 
    } 
    dependencies { 
compile('org.springframework.boot:spring-boot-starter-web') 
testCompile('org.springframework.boot:spring-boot-starter-test') 
compileOnly ('org.projectlombok:lombok:1.16.18') 
apt("org.projectlombok:lombok:1.16.18") 
    } 

오류 루트 프로젝트 '작업'을 평가하는 동안 문제가 발생했습니다. [: 롬복 : 1.16.18 org.projectlombok] 유형의 객체 org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependenc yHandler에

인수에 대한 APT() 메서드를 찾을 수 없습니다. 이 문제를 해결하는 방법

답변

0

이 문제가 lombok 함께 아니라고 보인다,하지만 누락 된 apt 플러그인. 설명 된대로 here과 같이 적용 해보세요. 즉, 귀하의 gradle 파일에 다음을 추가하십시오.