Deploying Java Artifacts to Multiple Maven Repositories with GitHub Actions

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Chips-n-Salsa

    A Java library of Customizable, Hybridizable, Iterative, Parallel, Stochastic, and Self-Adaptive Local Search Algorithms

  • Website: https://chips-n-salsa.cicirello.org/

  • maven-simple

    Example Maven project demonstrating the use of

  • name: Maven Package on: release: types: [created] jobs: publish: runs-on: ubuntu-latest env: artifact_name: chips-n-salsa steps: - uses: actions/checkout@v3 - name: Get the release version id: get_version run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT - name: Update package version run: mvn versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }} - name: Set up JDK 17 for deploy to OSSRH uses: actions/setup-java@v3 with: distribution: 'adopt' java-version: '17' server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_CENTRAL_TOKEN gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Publish to Apache Maven Central run: mvn deploy -PossrhDeploy env: MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - name: Set up JDK 17 for deploy to github packages uses: actions/setup-java@v3 with: distribution: 'adopt' java-version: '17' server-id: github - name: Publish to GitHub Packages Apache Maven run: mvn deploy -PgithubDeploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload jar files to release as release assets run: | TAG=${GITHUB_REF/refs\/tags\//} gh release upload ${TAG} target/${{ env.artifact_name }}-${{ steps.get_version.outputs.VERSION }}.jar gh release upload ${TAG} target/${{ env.artifact_name }}-${{ steps.get_version.outputs.VERSION }}-sources.jar gh release upload ${TAG} target/${{ env.artifact_name }}-${{ steps.get_version.outputs.VERSION }}-javadoc.jar gh release upload ${TAG} target/${{ env.artifact_name }}-${{ steps.get_version.outputs.VERSION }}-jar-with-dependencies.jar env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Request release from JitPack to trigger build run: | JITPACK_URL="https://jitpack.io/org/cicirello/${{ env.artifact_name }}/${{ steps.get_version.outputs.VERSION }}/maven-metadata.xml" # timeout in 30 seconds to avoid waiting for build curl -s -m 30 ${JITPACK_URL} || true

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How to Use the Maven Shade Plugin if Your Project Uses Java Platform Module System

    2 projects | dev.to | 5 Oct 2022
  • Ahead-of-time JitPack Builds with Custom GroupId via GitHub Actions

    3 projects | dev.to | 11 Aug 2022
  • How to Configure JitPack for Recent JDK Versions

    2 projects | dev.to | 4 Aug 2022
  • JaCoCo coverage badges, PR coverage checks, and PR coverage comments, from GitHub Actions

    6 projects | dev.to | 29 Nov 2021
  • How to Enable DEV Post Embeds for Pages From Your Website

    2 projects | dev.to | 29 Jul 2022