This is an automated email from the ASF dual-hosted git repository.

dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new db992cf  AVRO-2362: Enable calling mvn spotless:apply to auto format 
code
db992cf is described below

commit db992cf8686ffa681b0c592696b37ad519c33ee6
Author: Ismaël Mejía <[email protected]>
AuthorDate: Thu Mar 28 23:50:47 2019 +0100

    AVRO-2362: Enable calling mvn spotless:apply to auto format code
---
 lang/java/pom.xml |  2 --
 pom.xml           | 18 ++++++++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/lang/java/pom.xml b/lang/java/pom.xml
index cd8e532..f614916 100644
--- a/lang/java/pom.xml
+++ b/lang/java/pom.xml
@@ -78,7 +78,6 @@
     <plugin-tools-javadoc.version>3.5</plugin-tools-javadoc.version>
     <shade-plugin.version>3.2.1</shade-plugin.version>
     <source-plugin.version>3.0.1</source-plugin.version>
-    <spotless-maven-plugin.version>1.20.0</spotless-maven-plugin.version>
     <surefire-plugin.version>3.0.0-M3</surefire-plugin.version>
   </properties>
 
@@ -308,7 +307,6 @@
       <plugin>
         <groupId>com.diffplug.spotless</groupId>
         <artifactId>spotless-maven-plugin</artifactId>
-        <version>${spotless-maven-plugin.version}</version>
         <configuration>
           <java>
             <eclipse>
diff --git a/pom.xml b/pom.xml
index 6e52c34..75c165f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,8 +54,10 @@
     <extra-enforcer-rules.version>1.1</extra-enforcer-rules.version>
     <gpg-plugin.version>1.6</gpg-plugin.version>
     <javadoc-plugin.version>3.0.1</javadoc-plugin.version>
+    <maven-plugin-plugin.version>3.6.0</maven-plugin-plugin.version>
     <rat.version>0.13</rat.version>
     <source-plugin.version>3.0.1</source-plugin.version>
+    <spotless-maven-plugin.version>1.20.0</spotless-maven-plugin.version>
   </properties>
 
   <modules>
@@ -100,6 +102,15 @@
   </mailingLists>
 
   <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>com.diffplug.spotless</groupId>
+          <artifactId>spotless-maven-plugin</artifactId>
+          <version>${spotless-maven-plugin.version}</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -155,6 +166,13 @@
           </dependency>
         </dependencies>
       </plugin>
+      <plugin>
+        <artifactId>maven-plugin-plugin</artifactId>
+        <version>${maven-plugin-plugin.version}</version>
+        <configuration>
+          <goalPrefix>spotless</goalPrefix>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 

Reply via email to