dimas-b commented on code in PR #1991:
URL: https://github.com/apache/polaris/pull/1991#discussion_r2186089934


##########
plugins/spark/v3.5/spark-bundle/build.gradle.kts:
##########
@@ -0,0 +1,71 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
+
+plugins {
+  id("polaris-client")
+  id("com.gradleup.shadow")
+}
+
+// get version information
+val sparkMajorVersion = "3.5"
+val scalaVersion = getAndUseScalaVersionForProject()
+val icebergVersion = pluginlibs.versions.iceberg.get()
+val spark35Version = pluginlibs.versions.spark35.get()
+
+val scalaLibraryVersion =
+  if (scalaVersion == "2.12") {
+    pluginlibs.versions.scala212.get()
+  } else {
+    pluginlibs.versions.scala213.get()
+  }
+
+dependencies { 
implementation(project(":polaris-spark-${sparkMajorVersion}_${scalaVersion}")) }
+
+tasks.named<ShadowJar>("shadowJar") {

Review Comment:
   After this PR the bundled artifact maven coordinates are going to be 
different from what is currently in 1.0.0 RC* (that is 
`polaris-spark-3.5_2.12-1.0.0-incubating-bundle.jar`).
   
   Since the `polaris-spark` artifact name is occupied by the non-bundled Spark 
Client jar already (without a qualifier), I believe it is not possible to offer 
maven redirects, so this is going to be a breaking change in terms or Maven 
coordinates of Polaris artifacts. Regardless of whether we expect users to 
download this jar via Maven or now, I think it deserves to be mentioned in the 
CHANGELOG (unless we include this PR into 1.0.0).
   
   Cf. https://lists.apache.org/thread/hrdchvljflcknyq9c7o7by9jhpv204op



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@polaris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to