diff --git a/build.gradle b/build.gradle index 2a5d2496f1..77c246efa9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { id 'java' + id "com.diffplug.spotless" version "5.15.0" } group 'org.togetherjava' @@ -14,7 +15,7 @@ repositories { } dependencies { - implementation 'net.dv8tion:JDA:4.3.0_323' + implementation 'net.dv8tion:JDA:4.3.0_324' implementation 'org.apache.logging.log4j:log4j-api:2.14.1' implementation 'org.apache.logging.log4j:log4j-core:2.14.1' implementation 'org.apache.logging.log4j:log4j-slf4j18-impl:2.14.1' @@ -24,4 +25,10 @@ dependencies { test { useJUnitPlatform() -} \ No newline at end of file +} + +spotless { + java { + eclipse().configFile('meta/formatting/google-style-eclipse.xml') + } +} diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 diff --git a/meta/formatting/google-style-eclipse.xml b/meta/formatting/google-style-eclipse.xml new file mode 100644 index 0000000000..7e65c1f66b --- /dev/null +++ b/meta/formatting/google-style-eclipse.xml @@ -0,0 +1,337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +