You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2019/07/11 20:29:16 UTC

[GitHub] [incubator-iceberg] rdsr commented on a change in pull request #275: Fix iceberg-spark-runtime transitive dependencies.

rdsr commented on a change in pull request #275: Fix iceberg-spark-runtime transitive dependencies.
URL: https://github.com/apache/incubator-iceberg/pull/275#discussion_r302728695
 
 

 ##########
 File path: build.gradle
 ##########
 @@ -403,10 +399,13 @@ project(':iceberg-spark-runtime') {
   }
 
   dependencies {
-    compile project(':iceberg-spark')
+    compileOnly project(':iceberg-spark')
   }
 
   shadowJar {
+    // shade compileOnly dependencies to avoid including in transitive dependencies
+    configurations = [project.configurations.compileOnly]
 
 Review comment:
   I think the comment is slightly misleading.  Transitive dependencies are *being bundled* in the fat jar, they are just not pulled in when adding the fat jar as an dependency in a gradle or maven project.
   
   Can we reword the comment like so,
   Using compileOnly configuration since relying on compile configuration adds transitive artifacts as dependencies of the fat jar

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org