Test Java files are not processed #1573
-
I'm using the Gradle plugin version 6.11.0. I have noticed that test files (in
How come test files aren't getting processed? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
@spartanhooah Welcome! It's not immediately clear why this may be happening. Can you make a minimal, reproducible example Gradle project and share it with us? One idea that may work is to explicitly set the spotless {
java {
target 'src/*/java/**/*.java'
importOrder 'java', 'javax', 'org', 'com', 'com.mycompany', ''
removeUnusedImports()
googleJavaFormat('1.15.0').aosp()
licenseHeader '/** Copyright (C) $YEAR My Company All Rights Reserved */'
}
}
|
Beta Was this translation helpful? Give feedback.
-
As a side note, you'll be glad to hear that you don't need |
Beta Was this translation helpful? Give feedback.
-
🤦 So the files that weren't getting processed were in a second project in IntelliJ. Of course they weren't getting fixed! |
Beta Was this translation helpful? Give feedback.
🤦 So the files that weren't getting processed were in a second project in IntelliJ. Of course they weren't getting fixed!