From fdef7aadf4b7286d57aa8c61a5e3d7cc4492fcf6 Mon Sep 17 00:00:00 2001 From: Nicholas Rose <35816886+nicholasgrose@users.noreply.github.com> Date: Sat, 19 Oct 2024 19:50:50 -0500 Subject: [PATCH] Fix Discord occasionally breaking (cherry picked from commit b3bc1957a042ed9640ea957f6a978b9ccb0bc08a) --- .github/workflows/publish_release.yml | 2 +- .github/workflows/pull_request_check.yml | 3 +- .idea/jarRepositories.xml | 25 +++++++++++++ .idea/misc.xml | 2 +- .idea/modules/Gateway.main.iml | 4 --- ...ay__build_.xml => Gateway__shadowJar_.xml} | 5 +-- build.gradle.kts | 36 +++++++++++-------- gradle.properties | 3 ++ gradle/libs.versions.toml | 6 ++-- .../rose/gateway/discord/bot/DiscordBot.kt | 4 +-- .../discord/bot/checks/MessageCheck.kt | 6 ++-- .../gateway/discord/bot/client/ClientInfo.kt | 2 +- .../discord/bot/extensions/ExtensionToggle.kt | 2 +- .../bot/extensions/about/AboutExtension.kt | 4 +-- .../bot/extensions/chat/ChatExtension.kt | 4 +-- .../bot/extensions/chat/GameChatEvent.kt | 2 +- .../processing/DiscordMessageProcessor.kt | 2 +- .../discord/bot/extensions/ip/IpExtension.kt | 4 +-- .../bot/extensions/list/ListExtension.kt | 4 +-- .../bot/extensions/tps/TpsExtension.kt | 4 +-- .../whitelist/WhitelistArguments.kt | 4 +-- .../whitelist/WhitelistExtension.kt | 8 ++--- .../bot/message/GroupAndPaginateItems.kt | 4 +-- 23 files changed, 85 insertions(+), 55 deletions(-) rename .idea/runConfigurations/{Gateway__build_.xml => Gateway__shadowJar_.xml} (80%) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 02a7d9f0..8255c2b5 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -47,7 +47,7 @@ jobs: - name: Build artifacts uses: gradle/actions/setup-gradle@v3 with: - arguments: build + arguments: shadowJar # https://github.com/marketplace/actions/create-release - name: Create release diff --git a/.github/workflows/pull_request_check.yml b/.github/workflows/pull_request_check.yml index 096c49aa..12675da6 100644 --- a/.github/workflows/pull_request_check.yml +++ b/.github/workflows/pull_request_check.yml @@ -32,7 +32,7 @@ jobs: - name: Build artifacts uses: gradle/actions/setup-gradle@v3 with: - arguments: build --stacktrace + arguments: shadowJar ktlint: runs-on: ubuntu-latest @@ -63,4 +63,3 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} detekt_config: config/detekt/detekt.yml detekt_build_upon_default_config: true - reporter: github-pr-review diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index 3ae08c1f..5d2c2fff 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -36,5 +36,30 @@