update github actions

This commit is contained in:
Dan Mulloy 2023-04-09 17:55:53 -05:00
parent 01d77b7d0e
commit 952aabe7b0
No known key found for this signature in database
GPG Key ID: F379C293F178751F
3 changed files with 10 additions and 10 deletions

View File

@ -15,14 +15,14 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
java-version: '20'
cache: 'gradle'
- name: Run maven build lifecycle
run: mvn --batch-mode clean test package
- name: Run gradle build lifecycle
run: ./gradlew build shadowJar --no-daemon
- name: Upload plugin file
uses: actions/upload-artifact@v2
with:
name: ProtocolLib
path: target/ProtocolLib.jar
path: build/libs/ProtocolLib.jar

View File

@ -26,16 +26,16 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
java-version: '20'
cache: 'gradle'
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: 'java'
- name: Run maven build lifecycle
run: mvn --batch-mode clean test package
- name: Run gradle build lifecycle
run: ./gradlew build --no-daemon
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

View File

@ -38,7 +38,7 @@ dependencies {
shadowJar {
dependencies {
include(dependency('net.bytebuddy:byte-buddy:*'))
include(dependency('net.bytebuddy:byte-buddy:.*'))
}
archiveFileName = 'ProtocolLib.jar'
}