Lombok: Custom lombok jar

Created on 4 Nov 2016  路  2Comments  路  Source: projectlombok/lombok

we want to use only @Getter and @Setter lombok annotations, is it possible to do so? Is it ok to delete rest of all the class files so that no one in the org can use them other than Getter.class ans setter.class?

Most helpful comment

Why do you want to do this? Are you trying to punish your developers?

All 2 comments

Why do you want to do this? Are you trying to punish your developers?

If your desire is to reduce final jar file size maybe you need to take a look at Proguard, it can remove unused files from your final build jar, but you will need to configure some things to do it works well with reflections.
If you want to forbid another lombok features, maybe a configuration on tools like PMD or findbugs can solve.

Was this page helpful?
0 / 5 - 0 ratings