Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Migrate to Gradle #168

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
203 changes: 0 additions & 203 deletions .checkstyle.xml

This file was deleted.

44 changes: 0 additions & 44 deletions .codeclimate.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .editorconfig

This file was deleted.

42 changes: 23 additions & 19 deletions .github/workflows/maven.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,38 @@
name: Java CI
name: Plugin Build

on:
workflow_dispatch:
push:
pull_request:
branches:
- master

jobs:
Build:
strategy:
matrix:
jdkversion: [ 21 ]
build:
if: ${{ !contains(github.event.head_commit.message, '[skip]') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkversion }}
cache: 'maven'
java-version: 21
distribution: temurin
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Make Gradle Wrapper Executable
run: chmod +x ./gradlew
- name: Build
run: mvn -V -B clean package --file pom.xml
- name: Upload Artifacts
run: ./gradlew clean build
- name: Capture Build Artifacts
uses: actions/upload-artifact@v4
with:
name: Download
path: ./target/AuthMe-*-FORK-Universal.jar
name: Artifacts
path: outs/
runtime-test:
name: Plugin Runtime Test
needs: [Build]
name: Plugin Runtime Test
needs: [ build ]
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -41,11 +45,11 @@ jobs:
javaVersion: '17'
- mcVersion: '1.20.4'
javaVersion: '21'
- mcVersion: '1.21.1'
- mcVersion: '1.20.6'
javaVersion: '21'
steps:
steps:
- uses: HaHaWTH/minecraft-plugin-runtime-test@paper
with:
server-version: ${{ matrix.mcVersion }}
java-version: ${{ matrix.javaVersion }}
artifact-name: Download
artifact-name: Artifacts
Loading
Loading