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

morningman pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-doris-spark-connector.git

commit be2cdedbe6f329637daa95f10b60758fa5afd673
Author: jiafeng.zhang <zhang...@gmail.com>
AuthorDate: Tue Nov 9 10:02:08 2021 +0800

    [Build]Compile and output the jar file, add Spark, Flink version and Scala 
version (#7051)
    
    The jar file compiled by Flink and Spark Connector, with the corresponding 
Flink, Spark version
    and Scala version at compile time, so that users can know whether the 
version number matches when using it.
    
    Example of output file name:doris-spark-1.0.0-spark-3.2.0_2.12.jar
---
 build.sh    | 5 ++---
 pom.xml     | 2 +-
 pom_3.0.xml | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/build.sh b/build.sh
index d6ba435..cc5d138 100755
--- a/build.sh
+++ b/build.sh
@@ -61,6 +61,7 @@ if [ $# == 0 ]; then
     usage
 fi
 
+rm -rf output/
 
 if [ "$1"x == "3x" ]
 then
@@ -72,9 +73,7 @@ then
 fi
 
 mkdir -p output/
-cp target/doris-spark-1.0.0-SNAPSHOT.jar ./output/
-cp target/doris-spark-1.0.0-SNAPSHOT-javadoc.jar ./output/
-cp target/doris-spark-1.0.0-SNAPSHOT-sources.jar ./output/
+cp target/doris-spark-*.jar ./output/
 
 echo "*****************************************"
 echo "Successfully build Spark-Doris-Connector"
diff --git a/pom.xml b/pom.xml
index b76c823..d756bfb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
 
     <groupId>org.apache</groupId>
     <artifactId>doris-spark</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
+    <version>1.0.0-spark-${spark.version}_${scala.version}</version>
 
     <properties>
         <scala.version>2.11</scala.version>
diff --git a/pom_3.0.xml b/pom_3.0.xml
index d208ad0..d09e81a 100644
--- a/pom_3.0.xml
+++ b/pom_3.0.xml
@@ -26,7 +26,7 @@
 
     <groupId>org.apache</groupId>
     <artifactId>doris-spark</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
+    <version>1.0.0-spark-${spark.version}_${scala.version}</version>
 
     <properties>
         <scala.version>2.12</scala.version>

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to