Skip to content

Commit

Permalink
Exclude gradle.properties from spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
zechmeister committed Nov 27, 2024
1 parent c4ce8e8 commit 213681a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ tasks {
}

spotless {
encoding("UTF-8")
lineEndings = com.diffplug.spotless.LineEnding.UNIX
java {
encoding("Cp1252")
removeUnusedImports()
googleJavaFormat()
}
Expand All @@ -150,6 +153,11 @@ spotless {
"**/*.sh",
"**/*.yml",
)
targetExclude(
"**/gradle.properties",
"**/gradle-wrapper.properties",
)

prettier(
mapOf(
"prettier" to "2.6.1",
Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 213681a

Please sign in to comment.