diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index a008b56..cd9253c 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -12,6 +12,11 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Cache build data uses: actions/cache@v2 with: @@ -22,11 +27,6 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - - name: Setup Java - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build Jar run: chmod +x gradlew && ./gradlew shadowJar @@ -34,4 +34,9 @@ jobs: uses: actions/upload-artifact@v2 with: name: chunkmaster - path: build/libs/chunkmaster-*.jar \ No newline at end of file + path: build/libs/chunkmaster-*.jar + + - name: Cleanup Gradle Cache + run: | + rm -f ~/.gradle/caches/modules-2/modules-2.lock + rm -f ~/.gradle/caches/modules-2/gc.properties \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0e11718..af49f98 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -gradle .gradle .idea build diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..e708b1c Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..2a56324 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists