Skip to content

Commit

Permalink
OZ-699: Publish Maven artifacts on Nexus (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaud authored Sep 6, 2024
1 parent 014c90d commit 1e8b258
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
with:
java-version: 11
maven-args: -Pbatch
use-secrets: true
login-docker: true
secrets:
Expand All @@ -28,6 +29,17 @@ jobs:
java-version: 11
maven-args: -Pspotless

publish:
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
needs: spotless
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
with:
java-version: 11
maven-args: -DskipTests -Pbatch
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

docker-ozone-flink-parquet-export:
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
needs: spotless
Expand Down
9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@
<url>https://www.mekomsolutions.com</url>
</developer>
</developers>

<distributionManagement>
<repository>
<id>mks-nexus-public-releases</id>
<name>Mekom Solutions Nexus repo</name>
<url>https://nexus.mekomsolutions.net/repository/maven-private-releases/</url>
<name>Mekom Solutions Nexus repo for releases</name>
<url>https://nexus.mekomsolutions.net/repository/maven-releases</url>
</repository>
<snapshotRepository>
<id>mks-nexus-private-snapshots</id>
<id>mks-nexus-public-snapshots</id>
<name>Mekom Solutions Nexus repo for snapshots</name>
<url>https://nexus.mekomsolutions.net/repository/maven-private-snapshots</url>
<url>https://nexus.mekomsolutions.net/repository/maven-snapshots</url>
</snapshotRepository>
</distributionManagement>

Expand Down

0 comments on commit 1e8b258

Please sign in to comment.