Skip to content

Commit

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

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

Modifications:

Generate source jars when needed

Result:

Release process does not fail anymore
  • Loading branch information
normanmaurer authored Aug 23, 2024
1 parent f4cd34c commit 12f28aa
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 4 deletions.
14 changes: 13 additions & 1 deletion boringssl-static/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
</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>
<!-- We must generate a -javadoc JAR file to publish on Maven Central -->
<execution>
<id>empty-javadoc-jar</id>
<phase>package</phase>
Expand All @@ -63,6 +63,18 @@
<classesDirectory>${basedir}/javadoc</classesDirectory>
</configuration>
</execution>
<!-- We must generate a -source JAR file to publish on Maven Central -->
<execution>
<id>source-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>source</classifier>
<classesDirectory>${generatedSourcesDir}/c</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
14 changes: 13 additions & 1 deletion libressl-static/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@
</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>
<!-- We must generate a -javadoc JAR file to publish on Maven Central -->
<execution>
<id>empty-javadoc-jar</id>
<phase>package</phase>
Expand All @@ -212,6 +212,18 @@
<classesDirectory>${basedir}/javadoc</classesDirectory>
</configuration>
</execution>
<!-- We must generate a -source JAR file to publish on Maven Central -->
<execution>
<id>source-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>source</classifier>
<classesDirectory>${generatedSourcesDir}/c</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
14 changes: 13 additions & 1 deletion openssl-dynamic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@
</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>
<!-- We must generate a -javadoc JAR file to publish on Maven Central -->
<execution>
<id>empty-javadoc-jar</id>
<phase>package</phase>
Expand All @@ -169,6 +169,18 @@
<classesDirectory>${basedir}/javadoc</classesDirectory>
</configuration>
</execution>
<!-- We must generate a -source JAR file to publish on Maven Central -->
<execution>
<id>source-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>source</classifier>
<classesDirectory>${basedir}/src/main/c</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
14 changes: 13 additions & 1 deletion openssl-static/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@
</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>
<!-- We must generate a -javadoc JAR file to publish on Maven Central -->
<execution>
<id>empty-javadoc-jar</id>
<phase>package</phase>
Expand All @@ -206,6 +206,18 @@
<classesDirectory>${basedir}/javadoc</classesDirectory>
</configuration>
</execution>
<!-- We must generate a -source JAR file to publish on Maven Central -->
<execution>
<id>source-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>source</classifier>
<classesDirectory>${generatedSourcesDir}/c</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down

0 comments on commit 12f28aa

Please sign in to comment.