Refresh dependencies when building (#271)

This commit is contained in:
IzzelAliz 2021-05-22 20:39:00 +08:00
parent b6a8366963
commit 5d65f21170
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ jobs:
run: chmod +x gradlew
- name: Build
run: |
./gradlew cleanBuild remapSpigotJar idea --no-daemon -i --stacktrace
./gradlew cleanBuild remapSpigotJar idea --no-daemon -i --stacktrace --refresh-dependencies
./gradlew build collect --no-daemon -i --stacktrace
- name: Upload Artifact
uses: actions/upload-artifact@v2

View File

@ -9,7 +9,7 @@ cache:
- ./.gradle
build_script:
- cmd: |
gradlew cleanBuild idea remapSpigotJar --no-daemon -i --stacktrace
gradlew cleanBuild idea remapSpigotJar --no-daemon -i --stacktrace --refresh-dependencies
gradlew build --no-daemon -i --stacktrace
rem Due to a MixinGradle bug, we need to build it twice
gradlew build collect --no-daemon -i --stacktrace