From d829247533cd45948eab2e1282deb6ee0fda96ee Mon Sep 17 00:00:00 2001 From: "Joseph S." <121976561+jsync-swirlds@users.noreply.github.com> Date: Fri, 25 Oct 2024 14:33:57 -0500 Subject: [PATCH] chore: change spotless base format to Palantir plugin (#312) Signed-off-by: Joseph Sinclair --- ...hedera.block.spotless-java-conventions.gradle.kts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/buildSrc/src/main/kotlin/com.hedera.block.spotless-java-conventions.gradle.kts b/buildSrc/src/main/kotlin/com.hedera.block.spotless-java-conventions.gradle.kts index 248a8c9a2..89ce27de3 100644 --- a/buildSrc/src/main/kotlin/com.hedera.block.spotless-java-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/com.hedera.block.spotless-java-conventions.gradle.kts @@ -22,12 +22,12 @@ spotless { // Enables the spotless:on and spotless:off comments toggleOffOn() // don't need to set target, it is inferred from java - // apply a specific flavor of google-java-format - // also reflow long strings, and do not format javadoc - // because the default setup is _very_ bad for javadoc - // We need to figure out a "correct" _separate_ setup for that. - googleJavaFormat("1.17.0").aosp().reflowLongStrings().formatJavadoc(false) - // Fix some left-out items from the google plugin + // apply a specific flavor of palantir-java-format + // and do not format javadoc because the default setup + // is _very_ bad for javadoc. We need to figure out a + // "correct" _separate_ setup for that. + palantirJavaFormat("2.50.0").formatJavadoc(false) + // Fix some left-out items from the palantir plugin indentWithSpaces(4) trimTrailingWhitespace() endWithNewline()