From 213681ae11670d20577eea470adaa1466fe4d12e Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 27 Nov 2024 16:59:44 +0100 Subject: [PATCH] Exclude `gradle.properties` from spotless --- build.gradle.kts | 8 ++++++++ gradle.properties | 12 ++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 01dd2aa..45e7e01 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -132,7 +132,10 @@ tasks { } spotless { + encoding("UTF-8") + lineEndings = com.diffplug.spotless.LineEnding.UNIX java { + encoding("Cp1252") removeUnusedImports() googleJavaFormat() } @@ -150,6 +153,11 @@ spotless { "**/*.sh", "**/*.yml", ) + targetExclude( + "**/gradle.properties", + "**/gradle-wrapper.properties", + ) + prettier( mapOf( "prettier" to "2.6.1", diff --git a/gradle.properties b/gradle.properties index 13a5c7b..9abe179 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ -org.gradle.jvmargs=\ - --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports \ - jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.\ - compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.\ - compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.\ - sun.tools.javac.util=ALL-UNNAMED +org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.\ + api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.\ + file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.\ + parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.\ + tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.\ + util=ALL-UNNAMED