jerryshao commented on code in PR #4548:
URL: https://github.com/apache/gravitino/pull/4548#discussion_r1732091785


##########
catalogs/catalog-lakehouse-iceberg/build.gradle.kts:
##########
@@ -136,7 +145,27 @@ tasks {
     dependsOn(copyCatalogLibs, copyCatalogConfig)
   }
 }
+// run  ./gradlew :catalogs:catalog-lakehouse-iceberg:calcDepsSize at the root 
of the project
+tasks.register("calcDepsSize") {
+  group = "verification"
+  description =
+    "Calculates the total size of all dependencies in the runtimeClasspath 
configuration for :catalogs:catalog-lakehouse-iceberg"
+
+  doLast {
+    val runtimeClasspath = configurations.runtimeClasspath.get()
+    var totalSize: Long = 0
+
+    runtimeClasspath.forEach { file ->
+      if (file.exists()) {
+        totalSize += file.length()
+      } else {
+        println("File not found: ${file.absolutePath}")
+      }
+    }
 
+    println("Total size of dependencies: ${totalSize / (1024 * 1024)} MB")
+  }
+}

Review Comment:
   I don't think this task is necessary, can you please remove this task?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to