diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..daf9307 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: Build +on: [ push, pull_request ] + +jobs: + build: + runs-on: ubuntu-latest + if: "!contains(github.event.commits[0].message, '[ci-skip]')" + steps: + - uses: actions/checkout@v2 + - uses: gradle/wrapper-validation-action@v1 + - uses: actions/setup-java@v2 + with: + distribution: temurin + java-version: 17 + - name: Configure Git + run: git config --global user.email "no-reply@github.com" && git config --global user.name "Github Actions" + - name: Build + run: ./gradlew build --stacktrace + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: Chat.jar + path: build/libs/Chat*.jar \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 392305e..7852ec4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,6 +26,10 @@ subprojects { withType { options.encoding = Charsets.UTF_8.name() } + + withType { + options.isDeprecation = true + } } }