Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.code.TypeTags when using lombok

前端 未结 9 1679
一整个雨季
一整个雨季 2020-11-28 11:44

I have following dependency in pom.xml:


    org.projectlombok
    lombok         


        
9条回答
  •  青春惊慌失措
    2020-11-28 12:17

    I encountered this issue when upgrading my project from JDK 8 to JDK 12 and using gradle instead of maven and using the io.franzbecker:gradle-lombok gradle plugin to configure lombok automatically.

    In this scenario changing buildScript.dependencies from classpath "io.franzbecker:gradle-lombok:1.14" to classpath "io.franzbecker:gradle-lombok:3.2.0" did the trick for me.

提交回复
热议问题