Skip to content

Commit

Permalink
Add delombok
Browse files Browse the repository at this point in the history
  • Loading branch information
M3DZIK committed Feb 28, 2024
1 parent 6cc4f56 commit c274774
Showing 1 changed file with 67 additions and 6 deletions.
73 changes: 67 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<junit.jupiter.version>5.10.1</junit.jupiter.version>
<lombok.version>1.18.30</lombok.version>

<sourceDirectory>target/generated-sources/delombok</sourceDirectory>
</properties>

<dependencies>
Expand All @@ -48,7 +51,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>

Expand Down Expand Up @@ -78,7 +81,7 @@
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
Expand Down Expand Up @@ -135,6 +138,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<configuration>
<sourcepath>${project.build.directory}/delombok</sourcepath>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -160,16 +166,71 @@
</executions>
</plugin>

<plugin>
<groupId>com.github.auties00</groupId>
<artifactId>delombok-plugin</artifactId>
<version>1.18.20</version>
<configuration>
<rootDirectory>${project.build.sourceDirectory}</rootDirectory>
<outputDirectory>${project.build.directory}/delombok</outputDirectory>
</configuration>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>delombok</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
</dependencies>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>attach-sources</id>
<id>generate-delomboked-sources-jar</id>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
<goal>run</goal>
</goals>
<configuration>
<target>
<jar destfile="${project.build.directory}/${project.build.finalName}-sources.jar"
basedir="${project.build.directory}/delombok"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>attach-delomboked-sources-jar</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/${project.build.finalName}-sources.jar</file>
<type>jar</type>
<classifier>sources</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
Expand Down

0 comments on commit c274774

Please sign in to comment.