diff --git a/scala/dllib/pom.xml b/scala/dllib/pom.xml
index 63e45ff266a..3d36112e271 100644
--- a/scala/dllib/pom.xml
+++ b/scala/dllib/pom.xml
@@ -336,6 +336,7 @@
com.microsoft.azure
synapseml-lightgbm_2.12
0.9.5
+ ${lightgbm.scope}
org.apache.spark
diff --git a/scala/pom.xml b/scala/pom.xml
index 1f1f148f007..1f4a3a4b8a6 100644
--- a/scala/pom.xml
+++ b/scala/pom.xml
@@ -692,6 +692,7 @@
2.11
2.11.8
2.1.0
+ provided
@@ -772,6 +773,7 @@
2.12
2.12.10
2.1.0
+ compile
${java.version}
${java.version}