Skip to content

Commit 78e9a00

Browse files
Log artifact size everytime (#56)
1 parent 4f89bda commit 78e9a00

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • gradle-modules/src/main/kotlin/org/sonarsource/cloudnative/gradle

gradle-modules/src/main/kotlin/org/sonarsource/cloudnative/gradle/BuildUtils.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fun Exec.callMake(arg: String) {
7373
}
7474
}
7575

76-
fun enforceJarSize(
76+
fun Project.enforceJarSize(
7777
file: File,
7878
minSize: Long,
7979
maxSize: Long,
@@ -84,6 +84,7 @@ fun enforceJarSize(
8484
} else if (size > maxSize) {
8585
throw GradleException("${file.path} size ($size) too large. Max is $maxSize")
8686
}
87+
logger.info("Artifact ${file.name} has size $size")
8788
}
8889

8990
fun checkJarEntriesPathUniqueness(file: File) {

0 commit comments

Comments
 (0)