sbt-delombok ![ThoughtWorks](https://camo.githubusercontent.com/8649b88dc48e472099fb039e6905b14d1034bf03e37244a5725ca9b4112a1ea2/68747470733a2f2f7777772e74686f75676874776f726b732e636f6d2f696d67732f74772d6c6f676f2e706e67)
sbt-delombok is an sbt plug-in to delombok Java sources files that contain Lombok annotations. With the help of this plug-in, you can generate Javadoc that contains Lombok-generated classes and methods.
Usage
Step 1: Add the following settings in your build.sbt
:
libraryDependencies += "org.projectlombok" % "lombok" % "latest.release" % Provided
crossPaths := false
autoScalaLibrary := false
The above sbt file creates a Java only project without Scala library. Then you can put some Java source files that contain some Lombok annotations into src/main/java
.
Step 2: Add the following settings in your project/plugins.sbt
:
addSbtPlugin("com.thoughtworks.sbt" % "delombokjavadoc" % "latest.release")
Step 3: Generate Javadoc:
sbt doc
Now you can see Lombok-generated classes and methods in your Javadoc.