Skip to content

Commit 13c48dc

Browse files
committed
Make sure sources are signed on packaging
By declaring the source plugin before the GPG plugin, order matters...
1 parent a883473 commit 13c48dc

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pom.xml

+11-11
Original file line numberDiff line numberDiff line change
@@ -451,31 +451,31 @@
451451

452452
<plugin>
453453
<groupId>org.apache.maven.plugins</groupId>
454-
<artifactId>maven-gpg-plugin</artifactId>
455-
<version>${maven.gpg.plugin.version}</version>
454+
<artifactId>maven-source-plugin</artifactId>
455+
<version>${maven-source-plugin.version}</version>
456456
<executions>
457457
<execution>
458-
<id>sign-artifacts</id>
459-
<phase>package</phase>
460458
<goals>
461-
<goal>sign</goal>
459+
<goal>jar</goal>
462460
</goals>
463-
<configuration>
464-
<keyname>${gpg.keyname}</keyname>
465-
</configuration>
466461
</execution>
467462
</executions>
468463
</plugin>
469464

470465
<plugin>
471466
<groupId>org.apache.maven.plugins</groupId>
472-
<artifactId>maven-source-plugin</artifactId>
473-
<version>${maven-source-plugin.version}</version>
467+
<artifactId>maven-gpg-plugin</artifactId>
468+
<version>${maven.gpg.plugin.version}</version>
474469
<executions>
475470
<execution>
471+
<id>sign-artifacts</id>
472+
<phase>package</phase>
476473
<goals>
477-
<goal>jar</goal>
474+
<goal>sign</goal>
478475
</goals>
476+
<configuration>
477+
<keyname>${gpg.keyname}</keyname>
478+
</configuration>
479479
</execution>
480480
</executions>
481481
</plugin>

0 commit comments

Comments
 (0)