diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1b781a03..77642aab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6f0883fc..7edce7cf 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -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 diff --git a/build.gradle b/build.gradle index 08d9147f..08737d84 100644 --- a/build.gradle +++ b/build.gradle @@ -38,7 +38,7 @@ dependencies { shadowJar { dependencies { - include(dependency('net.bytebuddy:byte-buddy:*')) + include(dependency('net.bytebuddy:byte-buddy:.*')) } archiveFileName = 'ProtocolLib.jar' }