diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index e4d2d8470cc34..956d9583592d6 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -73,8 +73,7 @@ jobs:
# In other words, in GitHub Action environment, `central` is mirrored by `Google Maven Central` first.
# If `Google Maven Central` doesn't provide the artifact due to its slowness, `central_without_mirror` will be used.
# Note that we aim to achieve the above while keeping the existing behavior of non-`GitHub Action` environment unchanged.
- echo "google-maven-centralGCS Maven Central mirrorhttps://maven-central.storage-download.googleapis.com/repos/central/data/central" > ~/.m2/settings.xml
- ./build/mvn $MAVEN_CLI_OPTS -DskipTests -Pyarn -Pmesos -Pkubernetes -Phive -P${{ matrix.hive }} -Phive-thriftserver -P${{ matrix.hadoop }} -Phadoop-cloud -Djava.version=${{ matrix.java }} install
+ ./build/mvn -X $MAVEN_CLI_OPTS -DskipTests -Pyarn -Pmesos -Pkubernetes -Phive -P${{ matrix.hive }} -Phive-thriftserver -P${{ matrix.hadoop }} -Phadoop-cloud -Djava.version=${{ matrix.java }} install
rm -rf ~/.m2/repository/org/apache/spark
@@ -113,7 +112,8 @@ jobs:
java-version: '11'
- name: install R
run: |
- echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' | sudo tee -a /etc/apt/sources.list
+
+ 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' | sudo tee -a /etc/apt/sources.list
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
sudo apt-get update
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
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 ef8fb709bbb59..afcfc31beadad 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
@@ -2879,6 +2879,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
-
-
-
-