Skip to content

Commit

Permalink
Ensure we generate javadocs for all artifacts (#881)
Browse files Browse the repository at this point in the history
Motivation:

We need to generate javadocs for all artifacts that we publish as
otherwise the release process will fail

Modifications:

Generate empty javadocs jars when needed

Result:

Release process does not fail anymore
  • Loading branch information
normanmaurer authored Aug 23, 2024
1 parent 9256e3e commit f4cd34c
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
21 changes: 21 additions & 0 deletions boringssl-static/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,27 @@
</plugin>
</plugins>
</pluginManagement>

<plugins>
<!-- We must generate a -javadoc JAR file to publish on Maven Central -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>empty-javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
<classesDirectory>${basedir}/javadoc</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<properties>
Expand Down
19 changes: 19 additions & 0 deletions libressl-static/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,25 @@
</execution>
</executions>
</plugin>

<!-- We must generate a -javadoc JAR file to publish on Maven Central -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>empty-javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
<classesDirectory>${basedir}/javadoc</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
19 changes: 19 additions & 0 deletions openssl-dynamic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,25 @@
</execution>
</executions>
</plugin>

<!-- We must generate a -javadoc JAR file to publish on Maven Central -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>empty-javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
<classesDirectory>${basedir}/javadoc</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
19 changes: 19 additions & 0 deletions openssl-static/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,25 @@
</execution>
</executions>
</plugin>

<!-- We must generate a -javadoc JAR file to publish on Maven Central -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>empty-javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
<classesDirectory>${basedir}/javadoc</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit f4cd34c

Please sign in to comment.