Skip to content

Commit 54a2933

Browse files
authored
fix(openml-xgboost): use the Scala 2.13 xgboost4j build on the 3.x line
1 parent 13ac756 commit 54a2933

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎openml-xgboost/pom.xml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@
5353

5454
<!--
5555
xgboost4j core (Java API: ml.dmlc.xgboost4j.java.{XGBoost,Booster,DMatrix}).
56-
The artifact carries a Scala suffix; we use the _2.12 build to match Pulse's Scala 2.12
57-
classpath, even though this provider only uses the pure-Java API. scala-compiler is not
58-
needed at all, so it is excluded to keep the classpath lean.
56+
The artifact carries a Scala suffix and must match the host's Scala binary version, because
57+
scala-library is binary-incompatible across 2.12/2.13. This is the 3.x release line
58+
(consumed by the Pulse Java 25 branch, Scala 2.13), so we use the _2.13 build. The 2.x line
59+
(hf-2.X, consumed by Pulse Java 8 / Scala 2.12) keeps the _2.12 build on its own branch.
60+
This provider only uses the pure-Java API; scala-compiler is not needed at all, so it is
61+
excluded to keep the classpath lean.
5962
6063
kryo is excluded because xgboost4j (via its parent pom) pulls Kryo 5, whose
6164
com.esotericsoftware.kryo.Kryo would clash on the class path with the Kryo 4 (kryo-shaded)
@@ -67,7 +70,7 @@
6770
-->
6871
<dependency>
6972
<groupId>ml.dmlc</groupId>
70-
<artifactId>xgboost4j_2.12</artifactId>
73+
<artifactId>xgboost4j_2.13</artifactId>
7174
<version>${xgboost.version}</version>
7275
<exclusions>
7376
<exclusion>

0 commit comments

Comments
 (0)