diff --git a/dev/scalafmt b/dev/scalafmt
index 0541a4058467b..3f69bc98f51c7 100755
--- a/dev/scalafmt
+++ b/dev/scalafmt
@@ -17,7 +17,6 @@
# limitations under the License.
#
-# by default, format only files that differ from git master
-params="${@:---diff}"
+VERSION="${@:-2.12}"
+./build/mvn -Pscala-$VERSION mvn-scalafmt_$VERSION:format -Dscalafmt.skip=false
-./build/mvn -Pscala-2.12 mvn-scalafmt_2.12:format -Dscalafmt.skip=false -Dscalafmt.parameters="$params"
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 58c05357ef417..0e6f85b6b42c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -162,7 +162,7 @@
3.2.2
2.12.10
2.12
- --diff --test
+ --test
true
1.9.13
@@ -2863,6 +2863,27 @@
+
+ org.antipathy
+ mvn-scalafmt_${scala.binary.version}
+ 1.0.3
+
+ ${scalafmt.parameters}
+ ${scalafmt.skip}
+ ${scalafmt.skip}
+ ${scalafmt.skip}
+ dev/.scalafmt.conf
+ true
+
+
+
+ validate
+
+ format
+
+
+
+
-
- org.antipathy
- mvn-scalafmt_2.12
- 0.12_1.5.1
-
- ${scalafmt.parameters}
- ${scalafmt.skip}
- ${scalafmt.skip}
- ${scalafmt.skip}
- dev/.scalafmt.conf
-
-
-
- validate
-
- format
-
-
-
-