Skip to content

Commit

Permalink
feat(java): Add aggregator POM for java and spark library to manage t…
Browse files Browse the repository at this point in the history
…he dependency (#469)



---------

Signed-off-by: acezen <qiaozi.zwb@alibaba-inc.com>
  • Loading branch information
acezen authored Apr 30, 2024
1 parent 7e97fb9 commit e89829b
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 18 deletions.
9 changes: 7 additions & 2 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.apache.graphar</groupId>
<parent>
<groupId>org.apache.graphar</groupId>
<artifactId>graphar-root</artifactId>
<version>${graphar.version}</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>gar-java</artifactId>
<version>0.1.0</version>
<packaging>jar</packaging>

<name>gar-java</name>
Expand Down
40 changes: 40 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.apache.graphar</groupId>
<artifactId>graphar-root</artifactId>
<version>${graphar.version}</version>
<packaging>pom</packaging>

<name>Apache GraphAr Root POM</name>
<modules>
<module>java</module>
<module>spark</module>
</modules>

<properties>
<graphar.version>0.1.0-SNAPSHOT</graphar.version>
</properties>
</project>
6 changes: 3 additions & 3 deletions spark/datasources-32/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache</groupId>
<artifactId>graphar</artifactId>
<groupId>org.apache.graphar</groupId>
<artifactId>graphar-spark</artifactId>
<version>${graphar.version}</version>
<relativePath>../pom.xml</relativePath>
</parent>

<groupId>org.apache</groupId>
<artifactId>graphar-datasources</artifactId>
<version>${graphar.version}</version>
<packaging>jar</packaging>
Expand Down
6 changes: 3 additions & 3 deletions spark/datasources-33/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache</groupId>
<artifactId>graphar</artifactId>
<groupId>org.apache.graphar</groupId>
<artifactId>graphar-spark</artifactId>
<version>${graphar.version}</version>
<relativePath>../pom.xml</relativePath>
</parent>

<groupId>org.apache</groupId>
<artifactId>graphar-datasources</artifactId>
<version>${graphar.version}</version>
<packaging>jar</packaging>
Expand Down
9 changes: 4 additions & 5 deletions spark/graphar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,18 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache</groupId>
<artifactId>graphar</artifactId>
<groupId>org.apache.graphar</groupId>
<artifactId>graphar-spark</artifactId>
<version>${graphar.version}</version>
<relativePath>../pom.xml</relativePath>
</parent>

<groupId>org.apache</groupId>
<artifactId>graphar-commons</artifactId>
<version>${graphar.version}</version>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>org.apache</groupId>
<groupId>org.apache.graphar</groupId>
<artifactId>graphar-datasources</artifactId>
<version>${graphar.version}</version>
</dependency>
Expand Down
13 changes: 8 additions & 5 deletions spark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.apache</groupId>
<artifactId>graphar</artifactId>
<version>${graphar.version}</version>
<parent>
<groupId>org.apache.graphar</groupId>
<artifactId>graphar-root</artifactId>
<version>${graphar.version}</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>graphar-spark</artifactId>
<packaging>pom</packaging>

<profiles>
Expand All @@ -44,7 +49,6 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<cupid.sdk.version>3.3.8-public</cupid.sdk.version>
<graphar.version>0.1.0-SNAPSHOT</graphar.version>
</properties>
<modules>
<module>graphar</module>
Expand All @@ -68,7 +72,6 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<cupid.sdk.version>3.3.8-public</cupid.sdk.version>
<graphar.version>0.1.0-SNAPSHOT</graphar.version>
</properties>
<modules>
<module>graphar</module>
Expand Down

0 comments on commit e89829b

Please sign in to comment.