From a9034d0efeb37cf219b3a32e0763150b4385970a Mon Sep 17 00:00:00 2001 From: Sven Meyer Date: Fri, 29 Nov 2024 14:30:06 +0100 Subject: [PATCH] Set Maven version to 3.9.0 --- .github/workflows/deploy.yml | 5 +++++ .github/workflows/main_build.yml | 8 +++++--- .github/workflows/style.yml | 15 ++++++++++++--- .github/workflows/version.yml | 10 ++++++++++ 4 files changed, 32 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f1f52f6..987115b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,6 +22,11 @@ jobs: server-password: OSSRH_PASSWORD # Env var that holds your OSSRH user pw gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Substituted with the value stored in the referenced secret gpg-passphrase: SIGN_KEY_PASS # Env var that holds the key's passphrase + # Tycho requires at least Maven 3.9.0 + - name: Set up Maven + uses: stCarolas/setup-maven@v5 + with: + maven-version: 3.9.0 - name: Build & Deploy CrySL run: mvn -B -U clean deploy -Pdeployment env: diff --git a/.github/workflows/main_build.yml b/.github/workflows/main_build.yml index 548d4a5..ce83d9d 100644 --- a/.github/workflows/main_build.yml +++ b/.github/workflows/main_build.yml @@ -2,9 +2,6 @@ name: CrySL build on: push: - branches-ignore: - - master - - develop pull_request: types: [opened, reopened] @@ -26,6 +23,11 @@ jobs: distribution: 'adopt' java-package: jdk java-version: '17' + # Tycho requires at least Maven 3.9.0 + - name: Set up Maven + uses: stCarolas/setup-maven@v5 + with: + maven-version: 3.9.0 # Restores Maven dependecies - name: Restore local Maven repository uses: actions/cache@v3 diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 894f163..53c102b 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -3,9 +3,6 @@ description: Check the formatting. Use "mvn spotless:apply" to format the code. on: push: - branches-ignore: - - master - - develop jobs: check-formatting: @@ -14,6 +11,18 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v4 + # Sets up Java version + - name: Set up Java + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-package: jdk + java-version: '17' + # Tycho requires at least Maven 3.9.0 + - name: Set up Maven + uses: stCarolas/setup-maven@v5 + with: + maven-version: 3.9.0 # Restores Maven dependecies - name: Restore local Maven repository uses: actions/cache@v4 diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 267a316..8f17bcc 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -25,6 +25,11 @@ jobs: distribution: 'adopt' java-package: jdk java-version: '17' + # Tycho requires at least Maven 3.9.0 + - name: Set up Maven + uses: stCarolas/setup-maven@v5 + with: + maven-version: 3.9.0 # Semantic versioning - name: Semantic versioning id: versioning @@ -83,6 +88,11 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + # Tycho requires at least Maven 3.9.0 + - name: Set up Maven + uses: stCarolas/setup-maven@v5 + with: + maven-version: 3.9.0 # Semantic versioning - name: Semantic versioning id: versioning