Skip to content

Commit f905191

Browse files
committed
Use the distributionManagement in pom.xml to point to GitHub Packages
1 parent 43d5327 commit f905191

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.github/workflows/nightly-build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Java SNAPSHOT Release
22

3+
permissions:
4+
packages: write
5+
36
on:
47
workflow_dispatch:
58
push:
@@ -13,15 +16,15 @@ jobs:
1316
runs-on: ubuntu-latest
1417
steps:
1518
- uses: actions/checkout@v4
19+
1620
- name: Set up JDK
1721
uses: actions/setup-java@v4
1822
with:
19-
distribution: 'temurin'
23+
distribution: temurin
2024
java-version: 21
21-
cache: 'maven'
25+
cache: maven
2226

2327
- name: Build and Publish SNAPSHOT
24-
run: ./mvnw deploy -B -V -DaltDeploymentRepository=github::default::https://maven.pkg.github.com/${{ github.repository }} -D"maven.javadoc.skip"="true" -D"java.util.logging.config.file"="${{github.workspace}}/quickfixj-core/src/test/resources/logging.properties" -D"http.keepAlive"="false" -D"maven.wagon.http.pool"="false" -D"maven.wagon.httpconnectionManager.ttlSeconds"="120"
25-
28+
run: ./mvnw deploy -B -V -D"maven.javadoc.skip"="true" -D"java.util.logging.config.file"="${{github.workspace}}/quickfixj-core/src/test/resources/logging.properties" -D"http.keepAlive"="false" -D"maven.wagon.http.pool"="false" -D"maven.wagon.httpconnectionManager.ttlSeconds"="120"
2629
env:
2730
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -604,14 +604,17 @@
604604
</profile>
605605
</profiles>
606606
<distributionManagement>
607-
<snapshotRepository>
608-
<id>ossrh</id>
609-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
610-
</snapshotRepository>
611607
<repository>
612-
<id>ossrh</id>
613-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
608+
<id>github</id>
609+
<name>GitHub Packages</name>
610+
<url>https://maven.pkg.github.com/quickfix-j/quickfixj</url>
614611
</repository>
612+
613+
<snapshotRepository>
614+
<id>github</id>
615+
<name>GitHub Packages Snapshots</name>
616+
<url>https://maven.pkg.github.com/quickfix-j/quickfixj</url>
617+
</snapshotRepository>
615618
</distributionManagement>
616619

617620
</project>

0 commit comments

Comments
 (0)