Skip to content

Commit

Permalink
Add task to calculate sizes for library comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
EAGrahamJr committed Feb 20, 2024
1 parent 955cb4d commit 0d1c726
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ tasks {
generateMetadataFileForLibraryPublication {
mustRunAfter("dokkaJavadocJar")
}
create("depSize") {
doLast {
val depSize = configurations["compileClasspath"].files.sumOf { it.length() }
logger.warn(">>> Dependencies size: ${depSize / 1024} KB")
}
}
}

defaultTasks("clean", "build", "dokkaJavadocJar", "libraryDistribution")

0 comments on commit 0d1c726

Please sign in to comment.