This is an automated email from the ASF dual-hosted git repository.
spica pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-graphar.git
The following commit(s) were added to refs/heads/main by this push:
new 4edcef67 chore(spark,java): extract format plugin into parent module
(#592)
4edcef67 is described below
commit 4edcef6717155acddd4fef9f836d2408b2b277ec
Author: John <[email protected]>
AuthorDate: Wed Aug 14 19:10:56 2024 +0800
chore(spark,java): extract format plugin into parent module (#592)
---
maven-projects/info/.scalafmt.conf | 8 --------
maven-projects/info/pom.xml | 18 ++++++++++++++++++
maven-projects/java/pom.xml | 3 +--
maven-projects/pom.xml | 37 ++++++++++++++++++++++++++-----------
maven-projects/spark/pom.xml | 2 +-
5 files changed, 46 insertions(+), 22 deletions(-)
diff --git a/maven-projects/info/.scalafmt.conf
b/maven-projects/info/.scalafmt.conf
deleted file mode 100644
index a79ab296..00000000
--- a/maven-projects/info/.scalafmt.conf
+++ /dev/null
@@ -1,8 +0,0 @@
-version = "3.0.6"
-
-align.preset = some
-runner.dialect = scala212
-maxColumn = 80
-docstrings.style = Asterisk
-docstrings.removeEmpty = true
-project.git = true
diff --git a/maven-projects/info/pom.xml b/maven-projects/info/pom.xml
index f768e3c4..e9b0a607 100644
--- a/maven-projects/info/pom.xml
+++ b/maven-projects/info/pom.xml
@@ -63,4 +63,22 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.diffplug.spotless</groupId>
+ <artifactId>spotless-maven-plugin</artifactId>
+ <version>${spotless-maven-plugin.version}</version>
+ <configuration>
+ <java>
+ <googleJavaFormat>
+ <version>1.7</version>
+ <style>AOSP</style>
+ </googleJavaFormat>
+ </java>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
\ No newline at end of file
diff --git a/maven-projects/java/pom.xml b/maven-projects/java/pom.xml
index 61ec3a1d..42f4adab 100644
--- a/maven-projects/java/pom.xml
+++ b/maven-projects/java/pom.xml
@@ -50,7 +50,6 @@
<arrow.version>13.0.0</arrow.version>
<maven-source-plugin.version>2.2.1</maven-source-plugin.version>
<maven.javadoc.version>3.4.0</maven.javadoc.version>
- <maven-spotless-plugin.version>2.20.0</maven-spotless-plugin.version>
<javadoc.output.directory>graphar-javadoc</javadoc.output.directory>
<javadoc.output.destDir>graphar-javadoc</javadoc.output.destDir>
<buildGarCPP>ON</buildGarCPP>
@@ -313,7 +312,7 @@
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
- <version>${maven-spotless-plugin.version}</version>
+ <version>${spotless-maven-plugin.version}</version>
<configuration>
<java>
<googleJavaFormat>
diff --git a/maven-projects/pom.xml b/maven-projects/pom.xml
index bd2e0bc4..f0152555 100644
--- a/maven-projects/pom.xml
+++ b/maven-projects/pom.xml
@@ -33,7 +33,9 @@
<packaging>pom</packaging>
<name>Apache GraphAr Root POM</name>
- <description>Apache GraphAr(Incubating) is an open source, standard data
file format for graph data storage and retrieval.</description>
+ <description>Apache GraphAr(Incubating) is an open source, standard data
file format for graph data storage and
+ retrieval.
+ </description>
<url>https://graphar.apache.org/</url>
<mailingLists>
@@ -58,18 +60,19 @@
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
-<!-- <issueManagement>
- <system>GitHub</system>
- <url>https://github.com/apache/graphar/issues</url>
- </issueManagement>
- <scm>
- <connection>scm:git:https://github.com/apache/graphar.git</connection>
-
<developerConnection>scm:git:https://github.com/apache/graphar.git</developerConnection>
- <tag>HEAD</tag>
- <url>https://github.com/apache/graphar</url>
- </scm>-->
+ <!-- <issueManagement>
+ <system>GitHub</system>
+ <url>https://github.com/apache/graphar/issues</url>
+ </issueManagement>
+ <scm>
+
<connection>scm:git:https://github.com/apache/graphar.git</connection>
+
<developerConnection>scm:git:https://github.com/apache/graphar.git</developerConnection>
+ <tag>HEAD</tag>
+ <url>https://github.com/apache/graphar</url>
+ </scm>-->
<properties>
<graphar.version>0.12.0-SNAPSHOT</graphar.version>
+ <spotless-maven-plugin.version>2.20.0</spotless-maven-plugin.version>
</properties>
<modules>
<module>java</module>
@@ -77,4 +80,16 @@
<module>info</module>
<module>proto</module>
</modules>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>com.diffplug.spotless</groupId>
+ <artifactId>spotless-maven-plugin</artifactId>
+ <version>${spotless-maven-plugin.version}</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
</project>
diff --git a/maven-projects/spark/pom.xml b/maven-projects/spark/pom.xml
index 72e6c085..3de2f5c3 100644
--- a/maven-projects/spark/pom.xml
+++ b/maven-projects/spark/pom.xml
@@ -102,7 +102,7 @@
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
- <version>2.20.0</version>
+ <version>${spotless-maven-plugin.version}</version>
<configuration>
<!-- define a language-specific format -->
<java>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]