From 5104af987c2b7f1629cc12457e7922034abc92f9 Mon Sep 17 00:00:00 2001 From: "Breno A." Date: Thu, 16 May 2024 07:23:23 -0300 Subject: [PATCH] ci: auto update version --- .github/workflows/maven-publish.yml | 10 +- pom.prp.xml | 228 ---------------------------- 2 files changed, 7 insertions(+), 231 deletions(-) delete mode 100644 pom.prp.xml diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 05de959..c1869c2 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -1,12 +1,11 @@ name: Publish a new Release on: - workflow_dispatch: release: - types: [created] + types: [published] jobs: # Build job - update-prp: + update-version: runs-on: ubuntu-latest permissions: contents: @@ -19,6 +18,7 @@ jobs: with: ignoredDirs: | docs + src target env: currentVersion: ${{ github.event.release.tag_name }} @@ -37,6 +37,10 @@ jobs: java-package: 'jdk' cache: 'maven' server-id: ossrh + + - name: mvn versions + run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }} + - name: Import GPG Key uses: crazy-max/ghaction-import-gpg@v5.0.0 with: diff --git a/pom.prp.xml b/pom.prp.xml deleted file mode 100644 index 5a735d8..0000000 --- a/pom.prp.xml +++ /dev/null @@ -1,228 +0,0 @@ - - - 4.0.0 - io.github.brenoepics - at4j - {_currentVersion_} - - Azure Translator For Java - - A simple Java library to translate text using Azure AI Cognitive Services. - Fast and easy to configure. - - https://github.com/brenoepics/at4j - - - Apache License 2.0 - https://github.com/brenoepics/at4j/blob/main/LICENSE - - - - - Breno Andrade - git@breno.tech - - - - scm:git:git://github.com/brenoepics/at4j.git - scm:git:ssh://github.com:brenoepics/at4j.git - https://github.com/brenoepics/at4j/tree/main - - - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - Nexus Release Repository - https://oss.sonatype.org/service/local/staging/deploy/maven2 - - - - UTF-8 - 11 - 11 - brenoepic - https://sonarcloud.io - - - - org.slf4j - slf4j-api - 2.0.13 - - - com.fasterxml.jackson.core - jackson-databind - 2.17.1 - - - org.junit.jupiter - junit-jupiter - 5.10.2 - - - org.mockito - mockito-core - 5.12.0 - test - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.6.3 - - - attach-javadocs - package - - jar - - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.4.1 - - - default-jar - package - - jar - - - - - - org.apache.maven.plugins - maven-gpg-plugin - 3.2.4 - - true - - - - sign-artifacts - verify - - sign - - - - - - - org.apache.maven.plugins - maven-resources-plugin - 3.3.1 - - - copy-resources - validate - - copy-resources - - - ${project.build.outputDirectory} - - - ${project.basedir}/src/main/resources - true - - - - - - - - org.sonatype.central - central-publishing-maven-plugin - 0.4.0 - true - - central - true - - - - org.apache.maven.plugins - maven-source-plugin - 3.3.1 - - - attach-sources - package - - jar - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.2.5 - - - org.jacoco - jacoco-maven-plugin - 0.8.12 - - - prepare-agent - - prepare-agent - - - - report - - report - - - - - - - - - coverage - - - - org.apache.maven.plugins - maven-gpg-plugin - - true - - - - - - - publish - - - - org.apache.maven.plugins - maven-gpg-plugin - - false - - - - - - -