Skip to content

Commit

Permalink
Move distrib management into profiles
Browse files Browse the repository at this point in the history
Signed-off-by: ascopes <73482956+ascopes@users.noreply.github.com>
  • Loading branch information
ascopes authored Aug 5, 2023
1 parent 59a8851 commit 188f2e6
Showing 1 changed file with 34 additions and 18 deletions.
52 changes: 34 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,6 @@

<contributors />

<distributionManagement>
<repository>
<id>ossrh</id>
<name>Maven Central Releases</name>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<name>Maven Central Snapshots</name>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/${project-slug}</url>
</repository>
</distributionManagement>

<issueManagement>
<system>GitHub Issues</system>
<url>${project-slug}/issues</url>
Expand Down Expand Up @@ -660,6 +642,40 @@
</build>

<profiles>
<profile>
<id>maven-central</id>

<distributionManagement>
<repository>
<id>ossrh</id>
<name>Maven Central Releases</name>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<name>Maven Central Snapshots</name>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
</profile>

<profile>
<id>github</id>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/${project-slug}</url>
</repository>
<snapshotRepository>
<id>github</id>
<name>GitHub Packages Snapshots</name>
<url>https://maven.pkg.github.com/${project-slug}</url>
</snapshotRepository>
</distributionManagement>
</profile>

<profile>
<id>releases</id>

Expand Down

0 comments on commit 188f2e6

Please sign in to comment.