Skip to content

Commit

Permalink
[jvm-packages] [CI] Publish XGBoost4J JARs with Scala 2.11 and 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Apr 15, 2020
1 parent 1830a5c commit ea6b117
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions tests/ci_build/deploy_jvm_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,21 @@ spark_version=$1

rm -rf build/
cd jvm-packages
# re-build package without Mock Rabit
mvn --no-transfer-progress package -Dspark.version=${spark_version} -DskipTests

# deploy to S3 bucket xgboost-maven-repo
mvn --no-transfer-progress deploy -P release-to-s3 -DskipTests
# Re-build package without Mock Rabit
# Deploy to S3 bucket xgboost-maven-repo
mvn --no-transfer-progress package deploy -P release-to-s3 -Dspark.version=${spark_version} -DskipTests

# Compile XGBoost4J with Scala 2.11 too
mvn clean
# Rename artifactId of all XGBoost4J packages with suffix _2.11
sed -i -e 's/<artifactId>xgboost\(.*\)_[0-9\.]\+/<artifactId>xgboost\1_2.11/' $(find . -name pom.xml)
# Modify scala.version and scala.binary.version fields
sed -i -e 's/<scala\.version>[0-9\.]\+/<scala.version>2.11.12/' $(find . -name pom.xml)
sed -i -e 's/<scala\.binary\.version>[0-9\.]\+/<scala.binary.version>2.11/' $(find . -name pom.xml)

# Re-build and deploy
mvn --no-transfer-progress package deploy -P release-to-s3 -Dspark.version=${spark_version} -DskipTests

set +x
set +e

2 comments on commit ea6b117

@CodingCat
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just published to public maven

image

@hcho3
Copy link
Collaborator Author

@hcho3 hcho3 commented on ea6b117 Apr 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CodingCat Thanks!

Please sign in to comment.