lombok 目前最新版本为 `1.18.42`。是能用的，只是要求更多了（细节原因网上搜索）。需要增加 annotationProcessor 配置（以前只需要配置 dependency）。

for maven

```xml
<build>
    <plugins>
      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
              <annotationProcessorPaths>
                  <path>
                      <groupId>org.projectlombok</groupId>
                      <artifactId>lombok</artifactId>
                  </path>
              </annotationProcessorPaths>
          </configuration>
      </plugin>

      ...
    </plugins>
</build>
```

for gradle

```gradle

val lombokVersion = "1.18.42"

dependencies {
    annotationProcessor("org.projectlombok:lombok:$lombokVersion")
    
    testAnnotationProcessor("org.projectlombok:lombok:$lombokVersion")
}
```