Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.12 KB

File metadata and controls

46 lines (34 loc) · 1.12 KB

bazel-lombok-generated-annotation

Bazel

Install bazel - https://docs.bazel.build/versions/main/install.html

Run build with bazel

bazel build //example:problem

Buck

Download buck binary

curl https://jitpack.io/com/github/facebook/buck/0e72e40074e1731dd3c9068e5ed23ee10bcc75dd/buck-0e72e40074e1731dd3c9068e5ed23ee10bcc75dd.pex > buck.exe
chmod +x buck.exe

Run build with buck

./buck.exe build //example:problem

Differences

Bazel output - output-jars/bazel-jar.jar

Buck output - output-jars/buck-jar.jar

Examine bytecode using luyten decompiler

java -jar luyten-0.5.4.jar

Bazel Generated class Bazel Generated Class

Buck Generated class Buck Generated Class

Opening Lombok in the Intellij debugger and setting a breakpoint where the annotation should be added, we can see Lombok adding the annotation during execution. For some reason, this annotation is not present in the final jar.

Debugger Debugger