projectlombok / lombok

Very spicy additions to the Java programming language.
https://projectlombok.org/
Other
12.72k stars 2.36k forks source link

[FEATURE] How to start project testing locally?Seeking source code tutorial #3653

Open yanzhao77 opened 3 months ago

yanzhao77 commented 3 months ago

How to start project testing locally, is there any tutorial or documentation? I want to add some new features and am stuck in the first compilation stage. I am using eclipse, but it cannot be imported as a normal java project.

charleech commented 3 months ago

It uses Apache Ant, please refer to https://projectlombok.org/contributing/contributing

If you want to start development on lombok, clone the repository and run ant eclipse or ant intellij, then open the working directory as a project in eclipse / intellij. Because the main contributors of lombok all use eclipse, that'll probably work a little more smoothly.

yanzhao77 commented 3 months ago

think you

yanzhao77 commented 3 months ago

This may be a stupid question, but when I used the default jdk1.8 for testing, the test was OK, but when I switched to jdk11, jdk17, and jdk21, all errors were reported. Do I need to modify anything? jdk17 image jdk11 image jdk21 image

yanzhao77 commented 3 months ago

I found that when the Java compiler version is specified as 1.8, it is OK, but when it is specified as other versions, an error will be reported. Can this be changed? image