3 ms·
Lombok is a compiler extension, not a dependency. It does actually need to be present at runtime!
by exabrial 4y ago
Lombok is a compiler extension, not a dependency. It does actually need to be present at runtime!
- actionfromafar 4y agoDoes not? But you could still see it as a transitive dependency of sorts.
- exabrial 4y agoyep :) I suck at typing
- hgsgm 4y agoIt's a compile-time dependency.
- exabrial 4y agoIn fact, no, it is not a dependency; your code will never see Lombok, only its effects. Lombok IS a compiler extension. It exploits one of the weirdest features that was introduced in Java 1.6: You can instruct javac to call a custom extension whenever it encounters a certain Annotation. This annotation doesn't need to be on the Applications classpath either. Weirdly, I haven't see this feature widely exploited by anyone _until_ lombok came around. Reference: https://openjdk.org/groups/compiler/processing-code.html https://openjdk.org/groups/compiler/processing-code.html
- yCombLinks 4y agoIf it's not included in the base java compiler it's a dependency.