Skip to content

Commit

Permalink
Rename ossrh snapshot and release targets
Browse files Browse the repository at this point in the history
  • Loading branch information
oranheim committed Oct 7, 2024
1 parent 1665ba9 commit 360cf64
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: |
mvn --batch-mode --no-transfer-progress deploy \
-DskipTests \
-P oss-sonatype
-P ossrh-snapshot
- name: Notify on success
if: success()
Expand Down
27 changes: 14 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,6 @@
<tag>HEAD</tag>
</scm>

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

<dependencies>
<dependency>
<groupId>io.descoped.config</groupId>
Expand Down Expand Up @@ -188,7 +177,13 @@

<profiles>
<profile>
<id>oss-sonatype</id>
<id>ossrh-snapshot</id>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<plugin>
Expand All @@ -204,7 +199,13 @@
</profile>

<profile>
<id>oss-maven-central</id>
<id>ossrh-release</id>
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
Expand Down

0 comments on commit 360cf64

Please sign in to comment.