GH-569 Fixed naming of variables and remove unused annotation #1819
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Gradle | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: | |
- 17 | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.6.0 | |
- name: 'Set up JDK ${{ matrix.java }}' | |
uses: actions/setup-java@v3.13.0 | |
with: | |
distribution: adopt | |
java-version: '${{ matrix.java }}' | |
- name: Cache Gradle | |
uses: actions/cache@v3.3.2 | |
with: | |
path: ~/.gradle/caches | |
key: >- | |
${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', | |
'**/gradle-wrapper.properties') }} | |
restore-keys: '${{ runner.os }}-gradle-' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build the Jar | |
run: './gradlew clean eternalcore-plugin:shadowJar' | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3.1.3 | |
with: | |
name: 'EternalCore' | |
path: eternalcore-plugin/build/libs/EternalCore*.jar |