We would like to use Google Java Format and still enforce 4 space indentation. Ideal way of doing this would be to use both googleJavaFormat("1.7") and indentWithSpaces(4) in the order and expect spotless to apply them in the given order and get the required result.
java {
removeUnusedImports()
googleJavaFormat("1.7")
indentWithSpaces(4)
trimTrailingWhitespace()
endWithNewline()
paddedCell()
}
Is there a way to enforce order of the execution of spotless to get the best of both?
We would like to use Google Java Format and still enforce 4 space indentation. Ideal way of doing this would be to use both
googleJavaFormat("1.7")andindentWithSpaces(4)in the order and expect spotless to apply them in the given order and get the required result.Is there a way to enforce order of the execution of spotless to get the best of both?