Explorar el Código

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

Eric Gao hace 2 años
padre
commit
c7e6e827bd
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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>