diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a59e2fa71..5a4cc8daa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,7 +61,7 @@ jobs: java-version: ${{ matrix.java }} cache: 'maven' - name: Build with Maven - run: mvn -Pbuild-without-spotbugs -B install --file pom.xml + run: mvn -B install --file pom.xml - name: Upload coverage to Codecov uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # 3.1.1 if: ${{ matrix.java == '11' }} # publish results once diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a51530d26..2068c09c5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,7 @@ jobs: RELEASE_TAG_VERSION=${{ github.event.release.tag_name }} echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION:1}" >> $GITHUB_ENV - name: Publish package - run: mvn -P sign,build-without-spotbugs clean deploy -DskipTests + run: mvn -Prelease clean deploy -DskipTests env: MAVEN_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }} diff --git a/.github/workflows/run-e2e-tests.yml b/.github/workflows/run-e2e-tests.yml index bc5ffd437..4ed79ca80 100644 --- a/.github/workflows/run-e2e-tests.yml +++ b/.github/workflows/run-e2e-tests.yml @@ -45,4 +45,4 @@ jobs: role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }} aws-region: ${{ env.AWS_DEFAULT_REGION }} - name: Run e2e test with Maven - run: mvn -Pbuild-without-spotbugs -DskipTests install --file pom.xml && mvn -Pe2e -B verify --file powertools-e2e-tests/pom.xml \ No newline at end of file + run: mvn -DskipTests install --file pom.xml && mvn -Pe2e -B verify --file powertools-e2e-tests/pom.xml \ No newline at end of file diff --git a/pom.xml b/pom.xml index dcc5b74f3..fef97d783 100644 --- a/pom.xml +++ b/pom.xml @@ -423,7 +423,7 @@ - sign + release @@ -445,33 +445,6 @@ - - - - - build-with-spotbugs - - false - - - - - com.github.spotbugs - spotbugs-maven-plugin - 4.7.3.5 - - - test - - check - - - - - true - ../spotbugs-exclude.xml - - org.apache.maven.plugins maven-source-plugin @@ -504,36 +477,28 @@ - build-without-spotbugs + build-with-spotbugs + + false + - org.apache.maven.plugins - maven-source-plugin + com.github.spotbugs + spotbugs-maven-plugin + 4.7.3.5 - attach-sources + test - jar-no-fork + check - - - org.apache.maven.plugins - maven-javadoc-plugin - none - false + true + ../spotbugs-exclude.xml - - - attach-javadocs - - jar - - -