From a26c85a50077b404f18018a686a5837d5d42a5da Mon Sep 17 00:00:00 2001 From: zontreck Date: Sat, 29 Mar 2025 01:48:43 -0700 Subject: [PATCH] Fix building --- build.gradle | 37 +- config/checkstyle/checkstyle.xml | 440 ----------------------- gradle.properties | 1 - gradle/wrapper/gradle-wrapper.properties | 4 +- 4 files changed, 6 insertions(+), 476 deletions(-) delete mode 100644 config/checkstyle/checkstyle.xml diff --git a/build.gradle b/build.gradle index d0768ec..0400847 100644 --- a/build.gradle +++ b/build.gradle @@ -1,8 +1,6 @@ -import com.github.spotbugs.snom.SpotBugsTask import java.text.SimpleDateFormat plugins { - id 'checkstyle' id "com.github.spotbugs" version "6.1.7" id 'com.gradleup.shadow' version '8.3.6' id 'java' @@ -43,8 +41,8 @@ java { repositories { maven { - name 'papermc' - url 'https://repo.papermc.io/repository/maven-public/' + name ='papermc' + url ='https://repo.papermc.io/repository/maven-public/' content { includeModule("io.papermc.paper", "paper-api") includeModule("io.papermc", "paperlib") @@ -53,8 +51,8 @@ repositories { } maven { - name 'minecraft' - url 'https://libraries.minecraft.net' + name ='minecraft' + url ='https://libraries.minecraft.net' content { includeModule("com.mojang", "brigadier") } @@ -84,33 +82,6 @@ processResources { } } -checkstyle { - toolVersion '10.20.1' - maxWarnings = 0 -} - -configurations.checkstyle { - resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") { - select("com.google.guava:guava:23.0") - } -} - -tasks.withType(Checkstyle).configureEach { - reports { - xml.required = false - html.required = true - } -} - -tasks.withType(SpotBugsTask).configureEach { - reports.create("html") { - required = true - } - reports.create("xml") { - required = false - } -} - shadowJar { archiveClassifier.set('') relocate 'io.papermc.lib', 'shadow.io.papermc.paperlib' diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml deleted file mode 100644 index 7a48dbe..0000000 --- a/config/checkstyle/checkstyle.xml +++ /dev/null @@ -1,440 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/gradle.properties b/gradle.properties index 5154008..18f452c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,6 @@ # This file was generated by the Gradle 'init' task. # https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties -org.gradle.configuration-cache=true org.gradle.parallel=true org.gradle.caching=true diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 37f853b..adda1f2 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists +zipStorePath=wrapper/dists \ No newline at end of file