Skip to content

Commit

Permalink
Cleanup logging
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-dingemans committed Apr 21, 2023
1 parent 81913f0 commit 77b6842
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 0 additions & 2 deletions build-logic/src/main/kotlin/ktlint-publication.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ signing {
// This property allows OS package maintainers to disable signing
val enableSigning = providers.gradleProperty("ktlint.publication.signing.enable").orNull != "false"

logger.lifecycle("Before sign in ktlint-publication: ${publishing.publications["maven"]}")
sign(publishing.publications["maven"])
logger.lifecycle("After sign in ktlint-publication: ${publishing.publications["maven"]}")
isRequired = enableSigning && !version.toString().endsWith("SNAPSHOT")
}

Expand Down
4 changes: 2 additions & 2 deletions ktlint-bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ dependencies {
constraints {
project.rootProject.subprojects.forEach { subproject ->
if (subproject.name in excludeList) {
logger.lifecycle("Ignore dependency on $subproject")
logger.lifecycle(" - Ignore dependency '${subproject.name}' and do not add to ktlint-bom")
} else {
logger.lifecycle("Add api dependency on $subproject to ktlint-bom")
logger.lifecycle(" + Add api dependency on '${subproject.name}' to ktlint-bom")
api(subproject)
}
}
Expand Down
11 changes: 1 addition & 10 deletions ktlint-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -112,22 +112,13 @@ tasks.register<Checksum>("shadowJarExecutableChecksum") {
// put the checksums in the same folder with the executable itself
outputDirectory.fileProvider(
shadowJarExecutable
.also { logger.lifecycle("registerChecksum - Set output files on shadowJarExecutableChecksum:") }
.map {
it
.outputs
.also { logger.lifecycle("registerChecksum - TasksOutputInternal contains ${it.files.count()} fileCollections") }
.files
.also {
logger.lifecycle(
it.joinToString(prefix = "registerChecksum - Files [${it.asPath}]: ", separator = ", ") { it.path },
)
}.files
.also { logger.lifecycle("registerChecksum - File set contains ${it.count()} files") }
.files
.first()
.also { logger.lifecycle("registerChecksum - First file: ${it.path}") }
.parentFile
.also { logger.lifecycle("registerChecksum - Parent file: ${it.path}") }
},
)
checksumAlgorithm.set(Checksum.Algorithm.MD5)
Expand Down

0 comments on commit 77b6842

Please sign in to comment.