diff --git a/RedisBungee-API/build.gradle.kts b/RedisBungee-API/build.gradle.kts index dfd81cf..ffef2f2 100644 --- a/RedisBungee-API/build.gradle.kts +++ b/RedisBungee-API/build.gradle.kts @@ -4,10 +4,12 @@ import java.io.ByteArrayOutputStream plugins { `java-library` `maven-publish` + checkstyle id("net.kyori.blossom") version "1.2.0" } + repositories { mavenCentral() } @@ -40,7 +42,7 @@ description = "RedisBungee interfaces" blossom { replaceToken("@version@", "$version") // GIT - var commit: String = "" + val commit: String; val commitStdout = ByteArrayOutputStream() rootProject.exec { standardOutput = commitStdout @@ -52,6 +54,11 @@ blossom { replaceToken("@build_date@", "${Instant.now().epochSecond}") } +checkstyle { + toolVersion = "10.12.3" +} + + java { withJavadocJar() withSourcesJar() diff --git a/RedisBungee-Bungee/build.gradle.kts b/RedisBungee-Bungee/build.gradle.kts index 8a22c40..bf4efe0 100644 --- a/RedisBungee-Bungee/build.gradle.kts +++ b/RedisBungee-Bungee/build.gradle.kts @@ -1,15 +1,20 @@ plugins { `java-library` `maven-publish` + checkstyle id("com.github.johnrengelman.shadow") version "8.1.1" id("xyz.jpenilla.run-waterfall") version "2.0.0" } - repositories { mavenCentral() maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") } // bungeecord } + +checkstyle { + toolVersion = "10.12.3" +} + val bungeecordApiVersion = "1.20-R0.1-SNAPSHOT" dependencies { api(project(":RedisBungee-API")) @@ -44,7 +49,7 @@ tasks { } runWaterfall { waterfallVersion("1.20") - environment.put("REDISBUNGEE_PROXY_ID", "bungeecord-1") + environment["REDISBUNGEE_PROXY_ID"] = "bungeecord-1" } compileJava { options.encoding = Charsets.UTF_8.name() diff --git a/RedisBungee-Velocity/build.gradle.kts b/RedisBungee-Velocity/build.gradle.kts index 7d1a260..2cd3930 100644 --- a/RedisBungee-Velocity/build.gradle.kts +++ b/RedisBungee-Velocity/build.gradle.kts @@ -1,6 +1,7 @@ plugins { `java-library` `maven-publish` + checkstyle id("com.github.johnrengelman.shadow") version "8.1.1" id("xyz.jpenilla.run-velocity") version "2.0.0" @@ -35,6 +36,10 @@ java { withJavadocJar() withSourcesJar() } +checkstyle { + toolVersion = "10.12.3" +} + tasks { withType { diff --git a/gradle.build.kts b/build.gradle.kts similarity index 100% rename from gradle.build.kts rename to build.gradle.kts diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml new file mode 100644 index 0000000..bc47e7e --- /dev/null +++ b/config/checkstyle/checkstyle.xml @@ -0,0 +1,382 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +