Skip to content

Commit

Permalink
Add linq4j to build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kramerul committed Feb 7, 2024
1 parent b22e32c commit 62723db
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ set -e
VERSION=1.36.0

./gradlew clean publishToMavenLocal
mvn install:install-file \
-Dfile=core/build/libs/calcite-core-$VERSION-SNAPSHOT.jar \
-DgroupId=org.apache.calcite \
-DartifactId=calcite-core-sap \
-Dversion=$VERSION \
-Dpackaging=jar \
-DlocalRepositoryPath=../nucleus-resources-app/patches/
mvn install:install-file \
-Dfile=core/build/libs/calcite-core-$VERSION-SNAPSHOT.jar \
-DgroupId=org.apache.calcite \
-DartifactId=calcite-core-sap \
-Dversion=$VERSION \
-Dpackaging=jar \
-DlocalRepositoryPath=$HOME/.m2/repository
cat core/build/publications/core/pom-default.xml | \
sed -e 's/calcite-core/calcite-core-sap/g' -e "s/${VERSION}-SNAPSHOT/${VERSION}/g" > \
../nucleus-resources-app/patches/org/apache/calcite/calcite-core-sap/$VERSION/calcite-core-sap-$VERSION.pom

for module in core linq4j;
do
mvn install:install-file \
-Dfile=${module}/build/libs/calcite-${module}-$VERSION-SNAPSHOT.jar \
-DgroupId=org.apache.calcite \
-DartifactId=calcite-${module}-sap \
-Dversion=$VERSION \
-Dpackaging=jar \
-DlocalRepositoryPath=../nucleus-resources-app/patches/
mvn install:install-file \
-Dfile=${module}/build/libs/calcite-${module}-$VERSION-SNAPSHOT.jar \
-DgroupId=org.apache.calcite \
-DartifactId=calcite-${module}-sap \
-Dversion=$VERSION \
-Dpackaging=jar \
-DlocalRepositoryPath=$HOME/.m2/repository
cat ${module}/build/publications/${module}/pom-default.xml | \
sed -e 's/calcite-${module}/calcite-${module}-sap/g' -e "s/${VERSION}-SNAPSHOT/${VERSION}/g" > \
../nucleus-resources-app/patches/org/apache/calcite/calcite-${module}-sap/$VERSION/calcite-${module}-sap-$VERSION.pom
done

0 comments on commit 62723db

Please sign in to comment.