build: add flatten plugin and fix dependency version

1. Added the
[flatten](https://github.com/apache/incubator-hugegraph/pull/2004)
plugin.
2. Unified the global version to 1.5.0.
3. Modified the version of `jraft-core`.

---------

Co-authored-by: imbajin <jin@apache.org>
This commit is contained in:
V_Galaxy 2023-06-27 23:48:51 +08:00
parent 6a813d2c06
commit 8ddf8291af
10 changed files with 52 additions and 11 deletions

3
.gitignore vendored
View File

@ -9,4 +9,5 @@
*.iml
/hg-pd-common/target_B000000405016P_Oct-28-114458-2021_conflict_parent/
dist/
dist/
.flattened-pom.xml

View File

@ -25,7 +25,8 @@
<parent>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-pd-root</artifactId>
<version>3.6.5-SNAPSHOT</version>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hg-pd-client</artifactId>

View File

@ -22,7 +22,8 @@
<parent>
<artifactId>hugegraph-pd-root</artifactId>
<groupId>org.apache.hugegraph</groupId>
<version>3.6.3-SNAPSHOT</version>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
@ -31,7 +32,7 @@
<dependency>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hg-pd-client</artifactId>
<version>3.6.5-SNAPSHOT</version>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>junit</groupId>

View File

@ -24,7 +24,8 @@
<parent>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-pd-root</artifactId>
<version>3.6.5-SNAPSHOT</version>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hg-pd-common</artifactId>

View File

@ -24,7 +24,8 @@
<parent>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-pd-root</artifactId>
<version>3.6.5-SNAPSHOT</version>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hg-pd-core</artifactId>
@ -36,7 +37,8 @@
<dependency>
<groupId>com.alipay.sofa</groupId>
<artifactId>jraft-core</artifactId>
<version>1.3.9-hg-SNAPSHOT</version>
<!-- TODO: use open source version & adopt the code later -->
<version>1.3.9</version>
<exclusions>
<exclusion>
<groupId>org.rocksdb</groupId>

View File

@ -22,7 +22,8 @@
<parent>
<artifactId>hugegraph-pd-root</artifactId>
<groupId>org.apache.hugegraph</groupId>
<version>3.6.5-SNAPSHOT</version>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -25,7 +25,8 @@
<parent>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-pd-root</artifactId>
<version>3.6.5-SNAPSHOT</version>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hg-pd-grpc</artifactId>

View File

@ -24,7 +24,8 @@
<parent>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-pd-root</artifactId>
<version>3.6.5-SNAPSHOT</version>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hugegraph-pd</artifactId>
@ -112,7 +113,13 @@
<dependency>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-common</artifactId>
<version>1.8.12</version>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.7</version>
<scope>compile</scope>
</dependency>
</dependencies>

View File

@ -23,6 +23,7 @@
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-pd-root</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

25
pom.xml
View File

@ -110,6 +110,31 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.2.7</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>