Fix release - javadoc packaging (#2497)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -92,7 +92,7 @@ jobs:
|
|||||||
GITLAB_API_TOKEN: ${{ secrets.GITLAB_API_TOKEN }}
|
GITLAB_API_TOKEN: ${{ secrets.GITLAB_API_TOKEN }}
|
||||||
|
|
||||||
- name: Run build javadoc, verify (test)
|
- name: Run build javadoc, verify (test)
|
||||||
run: mvn verify javadoc:jar -Dadditionalparam=-Xdoclint:none -Drevision=${REVISION} --batch-mode
|
run: mvn verify javadoc:jar -Drevision=${REVISION} --batch-mode
|
||||||
env:
|
env:
|
||||||
REVISION: ${{ github.event.inputs.revision }}
|
REVISION: ${{ github.event.inputs.revision }}
|
||||||
|
|
||||||
|
|||||||
33
pom.xml
33
pom.xml
@@ -633,16 +633,19 @@
|
|||||||
</activation>
|
</activation>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<!-- This enables javadoc packaging for sonatype central publishing - javadoc is required for releases with hard versions-->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.sonatype.central</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>central-publishing-maven-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
<version>${central.publishing.maven.plugin.version}</version>
|
<executions>
|
||||||
<extensions>true</extensions>
|
<execution>
|
||||||
<configuration>
|
<id>javadoc-jar</id>
|
||||||
<publishingServerId>central</publishingServerId>
|
<phase>package</phase>
|
||||||
<autoPublish>true</autoPublish>
|
<goals>
|
||||||
<waitUntil>published</waitUntil>
|
<goal>jar</goal>
|
||||||
</configuration>
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@@ -658,6 +661,18 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.sonatype.central</groupId>
|
||||||
|
<artifactId>central-publishing-maven-plugin</artifactId>
|
||||||
|
<version>${central.publishing.maven.plugin.version}</version>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<configuration>
|
||||||
|
<publishingServerId>central</publishingServerId>
|
||||||
|
<autoPublish>true</autoPublish>
|
||||||
|
<waitUntil>published</waitUntil>
|
||||||
|
<skipPublishing>true</skipPublishing>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|||||||
Reference in New Issue
Block a user