chore: make version more maintainable and change it to 0.1.0 (#35)
* chore: make version more maintainable and change it to 0.1.0
* feat: add flatten-maven-plugin
* chore: refine gitignore
diff --git a/.gitignore b/.gitignore
index f6f86ec..695e5a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,12 +4,6 @@
# Log file
*.log
-# BlueJ files
-*.ctxt
-
-# Mobile Tools for Java (J2ME)
-.mtj.tmp/
-
# Package Files #
*.jar
*.war
@@ -30,6 +24,8 @@
.classpath
.project
.settings
+**/.flattened-pom.xml
+**/.flattened-pom.xml.bak
# IDEA files
-*.iml
\ No newline at end of file
+*.iml
diff --git a/ceresdb-all/pom.xml b/ceresdb-all/pom.xml
index 6626045..55019da 100644
--- a/ceresdb-all/pom.xml
+++ b/ceresdb-all/pom.xml
@@ -4,7 +4,7 @@
<parent>
<artifactId>ceresdb-client</artifactId>
<groupId>io.ceresdb</groupId>
- <version>0.1.0-RC</version>
+ <version>${revision}</version>
</parent>
<artifactId>ceresdb-all</artifactId>
diff --git a/ceresdb-common/pom.xml b/ceresdb-common/pom.xml
index f61b3f4..d5822f4 100644
--- a/ceresdb-common/pom.xml
+++ b/ceresdb-common/pom.xml
@@ -4,7 +4,7 @@
<parent>
<artifactId>ceresdb-client</artifactId>
<groupId>io.ceresdb</groupId>
- <version>0.1.0-RC</version>
+ <version>${revision}</version>
</parent>
<artifactId>ceresdb-common</artifactId>
diff --git a/ceresdb-example/pom.xml b/ceresdb-example/pom.xml
index d849b8b..f168766 100644
--- a/ceresdb-example/pom.xml
+++ b/ceresdb-example/pom.xml
@@ -4,7 +4,7 @@
<parent>
<artifactId>ceresdb-client</artifactId>
<groupId>io.ceresdb</groupId>
- <version>0.1.0-RC</version>
+ <version>${revision}</version>
</parent>
<artifactId>ceresdb-example</artifactId>
diff --git a/ceresdb-grpc/pom.xml b/ceresdb-grpc/pom.xml
index 55f6c8b..46f1e8a 100644
--- a/ceresdb-grpc/pom.xml
+++ b/ceresdb-grpc/pom.xml
@@ -4,7 +4,7 @@
<parent>
<artifactId>ceresdb-client</artifactId>
<groupId>io.ceresdb</groupId>
- <version>0.1.0-RC</version>
+ <version>${revision}</version>
</parent>
<artifactId>ceresdb-grpc</artifactId>
diff --git a/ceresdb-http/pom.xml b/ceresdb-http/pom.xml
index 90ac69f..34c6441 100644
--- a/ceresdb-http/pom.xml
+++ b/ceresdb-http/pom.xml
@@ -4,7 +4,7 @@
<parent>
<artifactId>ceresdb-client</artifactId>
<groupId>io.ceresdb</groupId>
- <version>0.1.0-RC</version>
+ <version>${revision}</version>
</parent>
<artifactId>ceresdb-http</artifactId>
diff --git a/ceresdb-protocol/pom.xml b/ceresdb-protocol/pom.xml
index d25b6c3..899cc65 100644
--- a/ceresdb-protocol/pom.xml
+++ b/ceresdb-protocol/pom.xml
@@ -4,7 +4,7 @@
<parent>
<artifactId>ceresdb-client</artifactId>
<groupId>io.ceresdb</groupId>
- <version>0.1.0-RC</version>
+ <version>${revision}</version>
</parent>
<artifactId>ceresdb-protocol</artifactId>
diff --git a/ceresdb-rpc/pom.xml b/ceresdb-rpc/pom.xml
index 3e69d61..8518468 100644
--- a/ceresdb-rpc/pom.xml
+++ b/ceresdb-rpc/pom.xml
@@ -4,7 +4,7 @@
<parent>
<artifactId>ceresdb-client</artifactId>
<groupId>io.ceresdb</groupId>
- <version>0.1.0-RC</version>
+ <version>${revision}</version>
</parent>
<artifactId>ceresdb-rpc</artifactId>
diff --git a/ceresdb-sql-javacc/pom.xml b/ceresdb-sql-javacc/pom.xml
index b5bfd4c..791f6b4 100644
--- a/ceresdb-sql-javacc/pom.xml
+++ b/ceresdb-sql-javacc/pom.xml
@@ -4,7 +4,7 @@
<parent>
<artifactId>ceresdb-client</artifactId>
<groupId>io.ceresdb</groupId>
- <version>0.1.0-RC</version>
+ <version>${revision}</version>
</parent>
<artifactId>ceresdb-sql-javacc</artifactId>
diff --git a/ceresdb-sql/pom.xml b/ceresdb-sql/pom.xml
index 2d7c48d..c48f278 100644
--- a/ceresdb-sql/pom.xml
+++ b/ceresdb-sql/pom.xml
@@ -4,7 +4,7 @@
<parent>
<artifactId>ceresdb-client</artifactId>
<groupId>io.ceresdb</groupId>
- <version>0.1.0-RC</version>
+ <version>${revision}</version>
</parent>
<artifactId>ceresdb-sql</artifactId>
diff --git a/pom.xml b/pom.xml
index 3e151d5..c402c3c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,15 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
-<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">
+<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>io.ceresdb</groupId>
<artifactId>ceresdb-client</artifactId>
- <version>0.1.0-RC</version>
+ <version>${revision}</version>
<packaging>pom</packaging>
<name>ceresdb-client</name>
- <description>CeresDBClient is a high-performance Java client for CeresDB. CeresDB is a high-performance, distributed, schema-less, cloud native time-series database that can handle both time-series and analytics workloads.</description>
- <url>https://github.com/CeresDB/ceresdb-client-java</url>
+ <description>Official Java client implementation for CeresDB.</description>
+ <url>https://github.com/CeresDB</url>
<licenses>
<license>
@@ -21,12 +22,8 @@
<developers>
<developer>
- <name>zuliang.wzl</name>
- <email>zuliangwanghust@gmail.com</email>
- </developer>
- <developer>
- <name>weirong.cwr</name>
- <email>weirong.cwr@gmail.com</email>
+ <name>ceresdb team</name>
+ <email>ceresdbservice@gmail.com</email>
</developer>
</developers>
@@ -78,6 +75,8 @@
<okio.version>2.8.0</okio.version>
<project.encoding>UTF-8</project.encoding>
<protobuf.version>3.21.7</protobuf.version>
+ <!-- according to https://maven.apache.org/maven-ci-friendly.html -->
+ <revision>0.1.0</revision>
<slf4j.version>1.7.21</slf4j.version>
</properties>
@@ -453,8 +452,32 @@
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>flatten-maven-plugin</artifactId>
+ <version>1.1.0</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>
-
</project>