Skip to content

Commit f1b9453

Browse files
committed
Added pluging for delombok to work with javadoc plugin
1 parent 5937712 commit f1b9453

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

pom.xml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
53
<modelVersion>4.0.0</modelVersion>
64

75
<groupId>com.exceptionless</groupId>
@@ -121,6 +119,7 @@
121119
<localCheckout>true</localCheckout>
122120
<pushChanges>false</pushChanges>
123121
<mavenExecutorId>forked-path</mavenExecutorId>
122+
<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
124123
</configuration>
125124
<dependencies>
126125
<dependency>
@@ -160,6 +159,33 @@
160159
</execution>
161160
</executions>
162161
</plugin>
162+
<!--Added to use lombok with javadoc plugin-->
163+
<plugin>
164+
<groupId>org.projectlombok</groupId>
165+
<artifactId>lombok-maven-plugin</artifactId>
166+
<version>1.18.0.0</version>
167+
<configuration>
168+
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
169+
<encoding>UTF-8</encoding>
170+
<addOutputDirectory>false</addOutputDirectory>
171+
</configuration>
172+
<executions>
173+
<execution>
174+
<phase>generate-sources</phase>
175+
<goals>
176+
<goal>delombok</goal>
177+
</goals>
178+
</execution>
179+
</executions>
180+
</plugin>
181+
<plugin>
182+
<groupId>org.apache.maven.plugins</groupId>
183+
<artifactId>maven-javadoc-plugin</artifactId>
184+
<version>3.3.0</version>
185+
<configuration>
186+
<sourcepath>${project.build.directory}/generated-sources/delombok</sourcepath>
187+
</configuration>
188+
</plugin>
163189
</plugins>
164190
</build>
165191

0 commit comments

Comments
 (0)