Browse Source

Add Spotless step to check and block jUnit4 imports (#12398)

Eric Gao 2 years ago
parent
commit
c7e6e827bd
1 changed files with 5 additions and 0 deletions
  1. 5 0
      pom.xml

+ 5 - 0
pom.xml

@@ -659,6 +659,11 @@
                             <searchRegex>import\s+org\.powermock\.[^\*\s]*(|\*);(\r\n|\r|\n)</searchRegex>
                             <replacement>$1</replacement>
                         </replaceRegex>
+                        <replaceRegex>
+                            <name>Block jUnit4 imports</name>
+                            <searchRegex>import\s+org\.junit\.[^jupiter][^\*\s]*(|\*);(\r\n|\r|\n)</searchRegex>
+                            <replacement>$1</replacement>
+                        </replaceRegex>
                     </java>
                     <pom>
                         <sortPom>