diff --git a/.github/workflows/upload_maven_release.yaml b/.github/workflows/upload_maven_release.yaml new file mode 100644 index 0000000..7931ea9 --- /dev/null +++ b/.github/workflows/upload_maven_release.yaml @@ -0,0 +1,45 @@ +name: Upload Release + +on: + release: + types: [published] + +jobs: + upload: + name: Upload + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Cache Local Maven Repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + + - name: Setup Signing + uses: actions/setup-java@v2 + with: + java-version: 11 + distribution: 'adopt' + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + + - name: Setup Maven Central + uses: actions/setup-java@v2 + with: + java-version: 11 + distribution: 'adopt' + + server-id: central-sonatype-org + server-username: CENTRAL_SONATYPE_ORG_USERNAME + server-password: CENTRAL_SONATYPE_ORG_PASSWORD + gpg-passphrase: MAVEN_GPG_PASSPHRASE + + - name: Publish to Maven Central + run: mvn --batch-mode -Drevision=${{ github.event.release.tag_name }} -Dsha1= -Dchangelist= clean deploy -Ppublish-maven-central + env: + CENTRAL_SONATYPE_ORG_USERNAME: ${{ secrets.CENTRAL_SONATYPE_ORG_USERNAME }} + CENTRAL_SONATYPE_ORG_PASSWORD: ${{ secrets.CENTRAL_SONATYPE_ORG_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} diff --git a/.gitignore b/.gitignore index 7454d1b..2bb9bb0 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,5 @@ hs_err_pid* # macOS .DS_Store + +.flattened-pom.xml diff --git a/pom.xml b/pom.xml index 9a22e31..06f7733 100644 --- a/pom.xml +++ b/pom.xml @@ -8,6 +8,31 @@ aer_02 Azure EventHub to syslog bridge using Azure Java Function https://teragrep.com + + + GNU Affero General Public License v3.0 + https://github.com/teragrep/teragrep/blob/main/LICENSE + + + + + Mikko Kortelainen + 1@teragrep.com + Teragrep + https://teragrep.com + + + 43 + 43@teragrep.com + Teragrep + https://teragrep.com + + + + scm:git:https://github.com/teragrep/aer_02.git + scm:git:git@github.com:teragrep/aer_02.git + https://github.com/teragrep/aer_02/tree/master + -SNAPSHOT aer_02-20241015142323079 @@ -605,9 +630,113 @@ + + org.apache.maven.plugins + maven-source-plugin + 3.3.0 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.5.0 + + + attach-javadocs + + jar + + + 8 + + + + + + org.codehaus.mojo + flatten-maven-plugin + 1.1.0 + + true + bom + + + + flatten.clean + + clean + + clean + + + flatten + + flatten + + process-resources + + + + + publish-maven-central + + + ossrh + Central Repository OSSRH + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + + + + org.sonatype.central + central-publishing-maven-plugin + 0.5.0 + true + + central-sonatype-org + true + true + validated + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + + sign + + verify + + + --pinentry-mode + loopback + + + + + + + + publish-github-packages