Skip to content

Commit 9d40d67

Browse files
committed
Fix attachment of javadocs and sources to releases
1 parent a8b688d commit 9d40d67

1 file changed

Lines changed: 34 additions & 3 deletions

File tree

pom.xml

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,12 @@
398398
<version>${maven-dependency-plugin.version}</version>
399399
</plugin>
400400

401+
<plugin>
402+
<groupId>org.apache.maven.plugins</groupId>
403+
<artifactId>maven-gpg-plugin</artifactId>
404+
<version>${maven-gpg-plugin.version}</version>
405+
</plugin>
406+
401407
<plugin>
402408
<groupId>org.apache.maven.plugins</groupId>
403409
<artifactId>maven-install-plugin</artifactId>
@@ -457,7 +463,7 @@
457463
by this point. -->
458464
<arguments>-Dmaven.test.skip -Dinvoker.skip</arguments>
459465
<goals>deploy</goals>
460-
<releaseProfiles>gpg</releaseProfiles>
466+
<releaseProfiles>release</releaseProfiles>
461467
<preparationGoals>clean verify</preparationGoals>
462468
</configuration>
463469
</plugin>
@@ -732,17 +738,42 @@
732738

733739
<profiles>
734740
<profile>
735-
<id>gpg</id>
741+
<id>release</id>
736742
<build>
737743
<plugins>
744+
<plugin>
745+
<groupId>org.apache.maven.plugins</groupId>
746+
<artifactId>maven-source-plugin</artifactId>
747+
<executions>
748+
<execution>
749+
<id>attach-sources</id>
750+
<goals>
751+
<goal>jar-no-fork</goal>
752+
</goals>
753+
</execution>
754+
</executions>
755+
</plugin>
756+
757+
<plugin>
758+
<groupId>org.apache.maven.plugins</groupId>
759+
<artifactId>maven-javadoc-plugin</artifactId>
760+
<executions>
761+
<execution>
762+
<id>attach-javadocs</id>
763+
<goals>
764+
<goal>jar</goal>
765+
</goals>
766+
</execution>
767+
</executions>
768+
</plugin>
769+
738770
<plugin>
739771
<!-- GPG signing of build artifacts, required by Maven
740772
Central. We only enable this via a profile so that
741773
forks do not have to register GPG keys to be able
742774
to build. -->
743775
<groupId>org.apache.maven.plugins</groupId>
744776
<artifactId>maven-gpg-plugin</artifactId>
745-
<version>${maven-gpg-plugin.version}</version>
746777
<executions>
747778
<execution>
748779
<id>sign-artifacts</id>

0 commit comments

Comments
 (0)