There is a article which I followed https://medium.com/devdomain/using-lombok-in-spring-boot-simplifying-your-code-c38057894cb8 to set up lombok with spring boot
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.34</version>
<scope>provided</scope>
</dependency>
My reference repo https://github.com/ajaypundir04/charge-detail-record/blob/main/pom.xml