compilation error after introduce lombok to spring boot project

599 views
Skip to first unread message

Horace

unread,
May 6, 2016, 1:54:55 PM5/6/16
to Project Lombok
hi all,

I got the following error after I add lombok to my spring boot project, anyone experience similar issue? It seems lombok blocked spring from process its own annotation.

Any help will be highly appreciated!

Horace

Here is my build.gradle

configurations {

    provided

    compile.extendsFrom provided

}


dependencies {

    compile libraries.spring

    compile libraries.spring_security

    compile libraries.spring_fox

    compile libraries.mybatis


    // lombok to generate builder

    provided libraries.lombok

}


:services:compileJava

warning: No processor claimed any of these annotations: org.springframework.scheduling.annotation.Async,org.springframework.web.bind.annotation.PathVariable,javax.validation.constraints.Size,org.springframework.web.bind.annotation.RequestMapping,org.springframework.beans.factory.annotation.Autowired,io.swagger.annotations.ApiResponses,javax.validation.Valid,org.springframework.web.bind.annotation.RequestBody,org.springframework.beans.factory.annotation.Value,org.mybatis.spring.annotation.MapperScan,io.swagger.annotations.ApiOperation,org.apache.ibatis.annotations.Results,org.springframework.stereotype.Service,com.fasterxml.jackson.annotation.JsonIgnore,org.springframework.web.bind.annotation.ExceptionHandler,org.springframework.stereotype.Repository,org.apache.ibatis.annotations.Insert,org.apache.ibatis.annotations.Select,org.springframework.web.bind.annotation.ControllerAdvice,org.springframework.boot.autoconfigure.EnableAutoConfiguration,org.apache.ibatis.annotations.Delete,javax.validation.constraints.NotNull,org.springframework.web.bind.annotation.ResponseBody,org.springframework.web.bind.annotation.RestController,org.springframework.context.annotation.Configuration,org.springframework.stereotype.Component,lombok.Builder,lombok.Data,com.fasterxml.jackson.annotation.JsonCreator,javax.annotation.PostConstruct,org.springframework.context.annotation.Lazy,org.springframework.context.annotation.Bean,org.springframework.transaction.annotation.Transactional

error: warnings found and -Werror specified

1 error

1 warning

:services:compileJava FAILED

Horace

unread,
May 6, 2016, 2:33:39 PM5/6/16
to Project Lombok
just give everyone an update, after I disable the compiler warning by removing the following line, it worked.

        options.compilerArgs << '-Werror'

Reply all
Reply to author
Forward
0 new messages