Skip to content

Commit e83390e

Browse files
committed
Use PackageCloud to deploy milestones
[#160253747] (cherry picked from commit b58358b) Conflicts: pom.xml src/main/scripts/sanity-check.groovy (cherry picked from commit 693bd75)
1 parent 22655d3 commit e83390e

File tree

1 file changed

+42
-4
lines changed

1 file changed

+42
-4
lines changed

pom.xml

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@
8181
<maven.gpg.plugin.version>1.6</maven.gpg.plugin.version>
8282
<maven.jar.plugin.version>3.0.2</maven.jar.plugin.version>
8383
<maven.bundle.plugin.version>2.3.7</maven.bundle.plugin.version>
84+
<maven.packagecloud.wagon.version>0.0.6</maven.packagecloud.wagon.version>
85+
<checksum.maven.plugin.version>1.8</checksum.maven.plugin.version>
8486

8587
<!--
8688
These groovy scripts are used later in this POM file to generate
@@ -572,7 +574,7 @@
572574

573575
<!--
574576
The "milestone" Maven profile is used to push release artifacts to the
575-
Bintray Milestones Maven Repository.
577+
PackageCloud Milestones Maven Repository.
576578
-->
577579
<profile>
578580
<id>milestone</id>
@@ -595,6 +597,36 @@
595597
</executions>
596598
</plugin>
597599

600+
<plugin>
601+
<groupId>net.nicoulaj.maven.plugins</groupId>
602+
<artifactId>checksum-maven-plugin</artifactId>
603+
<version>${checksum.maven.plugin.version}</version>
604+
<executions>
605+
<execution>
606+
<id>sign-artifacts</id>
607+
<phase>package</phase>
608+
<goals>
609+
<goal>files</goal>
610+
</goals>
611+
<configuration>
612+
<fileSets>
613+
<fileSet>
614+
<directory>${project.build.directory}</directory>
615+
<includes>
616+
<include>*.jar</include>
617+
<include>*.pom</include>
618+
</includes>
619+
</fileSet>
620+
</fileSets>
621+
<algorithms>
622+
<algorithm>MD5</algorithm>
623+
<algorithm>SHA-1</algorithm>
624+
</algorithms>
625+
</configuration>
626+
</execution>
627+
</executions>
628+
</plugin>
629+
598630
<plugin>
599631
<groupId>org.apache.maven.plugins</groupId>
600632
<artifactId>maven-gpg-plugin</artifactId>
@@ -616,9 +648,8 @@
616648
</build>
617649
<distributionManagement>
618650
<repository>
619-
<id>bintray-rabbitmq-maven-milestones</id>
620-
<name>rabbitmq-maven-milestones</name>
621-
<url>https://api.bintray.com/maven/rabbitmq/maven-milestones/com.rabbitmq:amqp-client/;publish=1</url>
651+
<id>packagecloud-rabbitmq-maven-milestones</id>
652+
<url>packagecloud+https://packagecloud.io/rabbitmq/maven-milestones</url>
622653
</repository>
623654
</distributionManagement>
624655
</profile>
@@ -956,6 +987,13 @@
956987
</plugin>
957988

958989
</plugins>
990+
<extensions>
991+
<extension>
992+
<groupId>io.packagecloud.maven.wagon</groupId>
993+
<artifactId>maven-packagecloud-wagon</artifactId>
994+
<version>${maven.packagecloud.wagon.version}</version>
995+
</extension>
996+
</extensions>
959997
</build>
960998

961999
</project>

0 commit comments

Comments
 (0)