Skip to content

Commit

Permalink
Uses build helper plugin to attach javadocs and sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jqno committed Mar 11, 2022
1 parent bf72670 commit 25a674d
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
29 changes: 29 additions & 0 deletions equalsverifier-release-main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,35 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${version.build-helper-maven-plugin}</version>
<executions>
<execution>
<id>attach-javadoc-and-sources</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.basedir}/../equalsverifier-core/target/equalsverifier-core-${project.version}-javadoc.jar</file>
<type>jar</type>
<classifier>javadoc</classifier>
</artifact>
<artifact>
<file>${project.basedir}/../equalsverifier-core/target/equalsverifier-core-${project.version}-sources.jar</file>
<type>jar</type>
<classifier>sources</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
29 changes: 29 additions & 0 deletions equalsverifier-release-nodep/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,35 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${version.build-helper-maven-plugin}</version>
<executions>
<execution>
<id>attach-javadoc-and-sources</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.basedir}/../equalsverifier-core/target/equalsverifier-core-${project.version}-javadoc.jar</file>
<type>jar</type>
<classifier>javadoc</classifier>
</artifact>
<artifact>
<file>${project.basedir}/../equalsverifier-core/target/equalsverifier-core-${project.version}-sources.jar</file>
<type>jar</type>
<classifier>sources</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
<version.openjfx>17.0.2</version.openjfx>
<version.slf4j>1.7.36</version.slf4j>

<version.build-helper-maven-plugin>3.3.0</version.build-helper-maven-plugin>
<version.checkstyle.maven>3.1.2</version.checkstyle.maven>
<version.checkstyle>10.0</version.checkstyle> <!-- Property for Checkstyle's regression CI - see issues 216 and 586 -->
<version.flatten-maven-plugin>1.2.7</version.flatten-maven-plugin>
Expand Down

0 comments on commit 25a674d

Please sign in to comment.