Skip to content

Commit 7d3627c

Browse files
committed
Use PackageCloud to deploy milestones
[#160253747] (cherry picked from commit b58358b)
1 parent 628dfed commit 7d3627c

File tree

2 files changed

+43
-5
lines changed

2 files changed

+43
-5
lines changed

pom.xml

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979
<maven.gpg.plugin.version>1.6</maven.gpg.plugin.version>
8080
<maven.jar.plugin.version>3.0.2</maven.jar.plugin.version>
8181
<maven.bundle.plugin.version>3.2.0</maven.bundle.plugin.version>
82+
<maven.packagecloud.wagon.version>0.0.6</maven.packagecloud.wagon.version>
83+
<checksum.maven.plugin.version>1.8</checksum.maven.plugin.version>
8284

8385
<!--
8486
These groovy scripts are used later in this POM file to generate
@@ -570,7 +572,7 @@
570572

571573
<!--
572574
The "milestone" Maven profile is used to push release artifacts to the
573-
Bintray Milestones Maven Repository.
575+
PackageCloud Milestones Maven Repository.
574576
-->
575577
<profile>
576578
<id>milestone</id>
@@ -593,6 +595,36 @@
593595
</executions>
594596
</plugin>
595597

598+
<plugin>
599+
<groupId>net.nicoulaj.maven.plugins</groupId>
600+
<artifactId>checksum-maven-plugin</artifactId>
601+
<version>${checksum.maven.plugin.version}</version>
602+
<executions>
603+
<execution>
604+
<id>sign-artifacts</id>
605+
<phase>package</phase>
606+
<goals>
607+
<goal>files</goal>
608+
</goals>
609+
<configuration>
610+
<fileSets>
611+
<fileSet>
612+
<directory>${project.build.directory}</directory>
613+
<includes>
614+
<include>*.jar</include>
615+
<include>*.pom</include>
616+
</includes>
617+
</fileSet>
618+
</fileSets>
619+
<algorithms>
620+
<algorithm>MD5</algorithm>
621+
<algorithm>SHA-1</algorithm>
622+
</algorithms>
623+
</configuration>
624+
</execution>
625+
</executions>
626+
</plugin>
627+
596628
<plugin>
597629
<groupId>org.apache.maven.plugins</groupId>
598630
<artifactId>maven-gpg-plugin</artifactId>
@@ -614,9 +646,8 @@
614646
</build>
615647
<distributionManagement>
616648
<repository>
617-
<id>bintray-rabbitmq-maven-milestones</id>
618-
<name>rabbitmq-maven-milestones</name>
619-
<url>https://api.bintray.com/maven/rabbitmq/maven-milestones/com.rabbitmq:amqp-client/;publish=1</url>
649+
<id>packagecloud-rabbitmq-maven-milestones</id>
650+
<url>packagecloud+https://packagecloud.io/rabbitmq/maven-milestones</url>
620651
</repository>
621652
</distributionManagement>
622653
</profile>
@@ -942,6 +973,13 @@
942973
</plugin>
943974

944975
</plugins>
976+
<extensions>
977+
<extension>
978+
<groupId>io.packagecloud.maven.wagon</groupId>
979+
<artifactId>maven-packagecloud-wagon</artifactId>
980+
<version>${maven.packagecloud.wagon.version}</version>
981+
</extension>
982+
</extensions>
945983
</build>
946984

947985
</project>

src/main/scripts/sanity-check.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@GrabResolver(name = 'rabbitmq-bintray', root = 'http://dl.bintray.com/rabbitmq/maven')
2-
@GrabResolver(name = 'rabbitmq-bintray-milestones', root = 'http://dl.bintray.com/rabbitmq/maven-milestones')
2+
@GrabResolver(name = 'rabbitmq-packagecloud-milestones', root = 'https://packagecloud.io/rabbitmq/maven-milestones/maven2')
33
@Grab(group = 'com.rabbitmq', module = 'amqp-client', version = "${version}")
44
@Grab(group = 'org.slf4j', module = 'slf4j-simple', version = '1.7.25')
55
import com.rabbitmq.client.AMQP

0 commit comments

Comments
 (0)