Kotlin doesn't see Java Lombok accessors?

前端 未结 4 1694
野性不改
野性不改 2020-12-02 21:48

Using Kotlin 1.0.0 release (compiling in IntelliJ 15).

println(myPojoInstance.foo)

When it tries to compile code (in IntelliJ or Gradle) th

4条回答
  •  天命终不由人
    2020-12-02 22:50

    Looks like it works if you use delombok according to site and add the target/generated-sources/delombok folder in the pom.xml under build > plugins > plugin > kotlin-maven-plugin

提交回复
热议问题