Skip to content
Permalink
Browse files
[chore] Change GAV (#12)
1. modify GAV to "spark-doris-connector-{spark.minor.version}_${scala_version}"
  • Loading branch information
morningman committed Mar 6, 2022
1 parent 208624a commit 18203dfddfe7a9be8894c4c0cdade0df4c8fca77
Showing 3 changed files with 18 additions and 6 deletions.
@@ -35,6 +35,9 @@ github:
required_pull_request_reviews:
dismiss_stale_reviews: true
required_approving_review_count: 1
features:
issues: true
projects: true
notifications:
issues: commits@doris.apache.org
commits: commits@doris.apache.org
@@ -78,12 +78,20 @@ while true; do
esac
done

# extract minor version:
# eg: 3.1.2 -> 3
SPARK_MINOR_VERSION=0
if [ ${SPARK_VERSION} != 0 ]; then
SPARK_MINOR_VERSION=${SPARK_VERSION%.*}
echo "SPARK_MINOR_VERSION: ${SPARK_MINOR_VERSION}"
fi

if [[ ${BUILD_FROM_TAG} -eq 1 ]]; then
rm -rf ${ROOT}/output/
${MVN_BIN} clean package
else
rm -rf ${ROOT}/output/
${MVN_BIN} clean package -Dspark.version=${SPARK_VERSION} -Dscala.version=${SCALA_VERSION}
${MVN_BIN} clean package -Dspark.version=${SPARK_VERSION} -Dscala.version=${SCALA_VERSION} -Dspark.minor.version=${SPARK_MINOR_VERSION}
fi

mkdir ${ROOT}/output/
@@ -26,9 +26,9 @@
<version>23</version>
</parent>
<groupId>org.apache.doris</groupId>
<artifactId>doris-spark-connector</artifactId>
<version>${spark.version}-${scala.version}-1.0.0-SNAPSHOT</version>
<name>Doris Spark Connector</name>
<artifactId>spark-doris-connector-${spark.minor.version}_${scala.version}</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>Spark Doris Connector</name>
<url>https://doris.apache.org/</url>
<licenses>
<license>
@@ -64,6 +64,7 @@
<properties>
<scala.version>${env.scala.version}</scala.version>
<spark.version>${env.spark.version}</spark.version>
<spark.minor.version>${env.spark.minor.version}</spark.minor.version>
<libthrift.version>0.13.0</libthrift.version>
<arrow.version>5.0.0</arrow.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
@@ -98,7 +99,7 @@
<profile>
<id>spark.version</id>
<properties>
<env.spark.version>2.3.4</env.spark.version>
<env.spark.version>3.1.2</env.spark.version>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
@@ -107,7 +108,7 @@
<profile>
<id>scala.version</id>
<properties>
<env.scala.version>2.11</env.scala.version>
<env.scala.version>2.12</env.scala.version>
</properties>
<activation>
<activeByDefault>true</activeByDefault>

0 comments on commit 18203df

Please sign in to comment.