Skip to content

Commit

Permalink
Publish individual artifact javadoc jars
Browse files Browse the repository at this point in the history
Use base javadoc artifacts in bundles

Omit jdkspecific from javadoc
  • Loading branch information
tristantarrant committed Sep 29, 2022
1 parent 8a27768 commit 16fbd3d
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile-release
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pipeline {
parameters {
string(name: 'version', defaultValue: '0.0.0.Qualifier', description: 'Release version')
string(name: 'nextVersion', defaultValue: '', description: 'Next release (blank to stay on current SNAPSHOT)')
gitParameter(name: 'branch', defaultValue: 'origin/master', branchFilter: 'origin/(.*)', type: 'PT_BRANCH', description: 'Branch to release from')
gitParameter(name: 'branch', defaultValue: 'origin/master', branchFilter: 'origin/(.*)', type: 'PT_BRANCH', description: 'Branch to release from', sort: 'DESCENDING_SMART')
}

options {
Expand Down
20 changes: 19 additions & 1 deletion build-configuration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
<version.maven-compiler-plugin>3.10.1</version.maven-compiler-plugin>
<version.maven.invoker>3.2.1</version.maven.invoker>
<version.maven.jar>3.2.0</version.maven.jar>
<version.maven.javadoc>3.2.0</version.maven.javadoc>
<version.maven.javadoc>3.4.1</version.maven.javadoc>
<version.maven-plugin-annotations>3.5.1</version.maven-plugin-annotations>
<version.maven-plugin-api>3.5.3</version.maven-plugin-api>
<version.maven-plugin-plugin>3.6.0</version.maven-plugin-plugin>
Expand Down Expand Up @@ -252,6 +252,20 @@
<serverId>${maven.releases.repo.id}</serverId>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${version.maven.javadoc}</version>
<executions>
<execution>
<id>javadoc</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down Expand Up @@ -286,6 +300,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,35 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>community-release</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>../kryo-marshaller/target/infinispan-marshaller-kryo-${project.version}-javadoc.jar</file>
<type>jar</type>
<classifier>javadoc</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,35 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>community-release</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>../protostuff-marshaller/target/infinispan-marshaller-protostuff-${project.version}-javadoc.jar</file>
<type>jar</type>
<classifier>javadoc</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
7 changes: 7 additions & 0 deletions commons/all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,13 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<excludePackageNames>org.infinispan.commons.jdkspecific*</excludePackageNames>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 16fbd3d

Please sign in to comment.