Skip to content

Commit

Permalink
Attempt to fix maven building again
Browse files Browse the repository at this point in the history
  • Loading branch information
FireController1847 committed Jun 20, 2024
1 parent 0a4eef9 commit d1c0bd9
Showing 1 changed file with 19 additions and 28 deletions.
47 changes: 19 additions & 28 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,41 +16,36 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
java-version: [ 8, 17, 21 ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
distribution: "temurin"
cache: maven
- uses: SpraxDev/Action-SpigotMC@v4
- name: Build Spigot (JDK 8)
uses: SpraxDev/Action-SpigotMC@v4
with:
versions: 1.16.5, 1.16.3, 1.16.1, 1.15.2, 1.14.4, 1.13.2, 1.13, 1.12.2
remapped: true
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- uses: SpraxDev/Action-SpigotMC@v4
java-version: 8
- name: Build Spigot (JDK 17)
uses: SpraxDev/Action-SpigotMC@v4
with:
versions: 1.20.1, 1.19, 1.18.2, 1.18.1, 1.17.1
remapped: true
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- uses: SpraxDev/Action-SpigotMC@v4
with:
versions: 1.21, 1.20.6, 1.20.2
remapped: true
java-version: 17
- name: Build Spigot (JDK 21)
uses: SpraxDev/Action-SpigotMC@v4
with:
versions: 1.21, 1.20.6, 1.20.2
remapped: true
java-version: 21
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Cache Maven
Expand All @@ -60,8 +55,4 @@ jobs:
path: |
~/.m2
~/repository
key: ${{ github.job }}-${{ hashFiles('**/pom.xml') }}

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
key: ${{ github.job }}-${{ hashFiles('**/pom.xml') }}

0 comments on commit d1c0bd9

Please sign in to comment.