From ac0072a5e81bd86d9973ad6a410ae71e21666731 Mon Sep 17 00:00:00 2001 From: Frank van der Heijden Date: Fri, 4 Dec 2020 14:08:40 +0100 Subject: [PATCH] Add github actions - Updated gradle wrapper to 6.7.1 - Added .gitignore --- .github/workflows/gradle.yml | 31 ++++++++++++++++++++++++ .gitignore | 6 +++++ gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gradle.yml create mode 100644 .gitignore diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..cc6de22 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,31 @@ +# This workflow will build a Java project with Gradle +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle + +name: Java CI with Gradle + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + - name: Upload artififacts + uses: actions/upload-artifact@v2.2.1 + with: + name: ServerUtils + path: build/libs/*-all.jar diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f8e72ea --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.idea/ +.vs/ +.gradle/ +build/ +*.class +*.jar \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index c70f986..b6aa34c 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ #Mon Jun 01 13:25:07 CEST 2020 -distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStorePath=wrapper/dists