Skip to content

Instantly share code, notes, and snippets.

@aikar aikar/diff.diff
Created Mar 23, 2019

Embed
What would you like to do?
commit d2742ea527a35a1969de2613764dfcff7738f210
Author: Aikar <aikar@aikar.co>
Date: Mon Mar 18 01:37:42 2019 -0400
Update Lombok and add delombok to javadocs
diff --git a/Empire/pom.xml b/Empire/pom.xml
index 22e65e883..e0c2ad827 100644
--- a/Empire/pom.xml
+++ b/Empire/pom.xml
@@ -20,7 +20,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mc.version>1.13.2-R0.1</mc.version>
<script.extension>.sh</script.extension>
- <lombok.version>1.18.0</lombok.version>
+ <lombok.version>1.18.4</lombok.version>
</properties>
<distributionManagement>
@@ -44,12 +44,60 @@
<profile>
<id>Windows</id>
<activation>
- <os><family>Windows</family></os>
+ <os>
+ <family>Windows</family>
+ </os>
</activation>
<properties>
<script.extension>.bat</script.extension>
</properties>
</profile>
+ <profile>
+ <id>javadocs</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.projectlombok</groupId>
+ <artifactId>lombok-maven-plugin</artifactId>
+ <version>${lombok.version}.0</version>
+ <executions>
+ <execution>
+ <id>delombok</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>delombok</goal>
+ </goals>
+ <configuration>
+ <addOutputDirectory>false</addOutputDirectory>
+ <sourceDirectory>src/main/java</sourceDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>3.0.1</version>
+ <configuration>
+ <sourcepath>${basedir}/target/generated-sources/delombok</sourcepath>
+ <destDir>../public/javadocs/</destDir>
+ <quiet>true</quiet>
+ <notimestamp>true</notimestamp>
+ <linksource>true</linksource>
+ <nohelp>true</nohelp>
+ </configuration>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>javadoc</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<build>
@@ -77,26 +125,7 @@
</annotationProcessorPaths>
</configuration>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>3.0.1</version>
- <configuration>
- <destDir>../public/javadocs/</destDir>
- <quiet>true</quiet>
- <notimestamp>true</notimestamp>
- <linksource>true</linksource>
- <nohelp>true</nohelp>
- </configuration>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>javadoc</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.