Skip to content

Commit 75d580f

Browse files
committed
fix: use logger.info instead of println to suppress output in -q mode
1 parent e32c69d commit 75d580f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private fun MavenPublishBaseExtension.signIfKeyPresent(project: Project) {
8181
val keyPassword = System.getenv("PASSWORD")
8282

8383
if (keyBytes != null && keyPassword != null) {
84-
println("Signing artifacts with in-memory PGP key (.gpg)")
84+
project.logger.info("Signing artifacts with in-memory PGP key (.gpg)")
8585
project.extensions.configure<SigningExtension>("signing") {
8686
// For binary .gpg keys
8787
if (keyId == null) {
@@ -92,7 +92,7 @@ private fun MavenPublishBaseExtension.signIfKeyPresent(project: Project) {
9292
signAllPublications()
9393
}
9494
} else {
95-
println("Skipping signing of artifacts: PGP key or password not found in environment variables")
95+
project.logger.info("Skipping signing of artifacts: PGP key or password not found in environment variables")
9696
}
9797
}
9898

0 commit comments

Comments
 (0)