From 7f9cb921f4d1cece63f80876f5aece9c46681db6 Mon Sep 17 00:00:00 2001 From: Boris Date: Mon, 5 Jun 2023 22:52:10 +0200 Subject: [PATCH] Rearranged maven profiles so that scala-2.13 artifacts are published without gpu-related libraries (#9253) --- jvm-packages/pom.xml | 8 -------- tests/ci_build/deploy_jvm_packages.sh | 11 ++++++++++- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/jvm-packages/pom.xml b/jvm-packages/pom.xml index 1e72f7b57f07..586661025879 100644 --- a/jvm-packages/pom.xml +++ b/jvm-packages/pom.xml @@ -301,14 +301,6 @@ https://s3.amazonaws.com/xgboost-maven-repo/release - - xgboost4j - xgboost4j-example - xgboost4j-spark - xgboost4j-flink - xgboost4j-gpu - xgboost4j-spark-gpu - diff --git a/tests/ci_build/deploy_jvm_packages.sh b/tests/ci_build/deploy_jvm_packages.sh index de875b14eab5..5f448ee2aed0 100755 --- a/tests/ci_build/deploy_jvm_packages.sh +++ b/tests/ci_build/deploy_jvm_packages.sh @@ -18,8 +18,17 @@ rm -rf $(find . -name target) rm -rf ../build/ # Re-build package without Mock Rabit +# Maven profiles: +# `default` includes modules: xgboost4j, xgboost4j-spark, xgboost4j-flink, xgboost4j-example +# `gpu` includes modules: xgboost4j-gpu, xgboost4j-spark-gpu, sets `use.cuda = ON` +# `scala-2.13` sets the scala binary version to the 2.13 +# `release-to-s3` sets maven deployment targets + # Deploy to S3 bucket xgboost-maven-repo -mvn --no-transfer-progress package deploy -Duse.cuda=ON -P release-to-s3 -Dspark.version=${spark_version} -DskipTests +mvn --no-transfer-progress package deploy -P default,gpu,release-to-s3 -Dspark.version=${spark_version} -DskipTests +# Deploy scala 2.13 to S3 bucket xgboost-maven-repo +mvn --no-transfer-progress package deploy -P release-to-s3,default,scala-2.13 -Dspark.version=${spark_version} -DskipTests + set +x set +e