File tree Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Original file line number Diff line number Diff line change 11plugins {
2- id " java"
2+ id " java-library "
33 id " maven-publish"
4- id " com.github.sherter.google-java-format " version " 0.9 "
4+ id " com.diffplug.spotless " version " 7.1.0 "
55}
66
77group = " com.github.malczuuu"
@@ -35,8 +35,28 @@ publishing {
3535 }
3636}
3737
38- googleJavaFormat {
39- toolVersion = " 1.26.0"
38+ spotless {
39+ format " misc" , {
40+ target " *.gradle" , " .gitattributes" , " .gitignore"
41+
42+ trimTrailingWhitespace()
43+ leadingTabsToSpaces(4 )
44+ endWithNewline()
45+ }
46+
47+ format " yaml" , {
48+ target " **/*.yml" , " **/*.yaml"
49+
50+ trimTrailingWhitespace()
51+ leadingTabsToSpaces(2 )
52+ endWithNewline()
53+ }
54+
55+ java {
56+ target " src/**/*.java"
57+
58+ googleJavaFormat(" 1.27.0" )
59+ }
4060}
4161
4262tasks. named(" test" ) {
You can’t perform that action at this time.
0 commit comments