GH-126 Central Dependency Management using toml file. (#126) #431
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: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- 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: Make gradlew executable | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@0bfe00a136db5e61ba3416b372542a65863a9fee | |
with: | |
arguments: shadowJar | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3.1.3 | |
with: | |
name: 'Successfully build EternalCombat' | |
path: eternalcombat-plugin/build/libs/*.jar |