diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/util/reportSourceSetCommonizerDependencies.kt b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/util/reportSourceSetCommonizerDependencies.kt index ce02a44d1b3..487b39c5a7d 100644 --- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/util/reportSourceSetCommonizerDependencies.kt +++ b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/util/reportSourceSetCommonizerDependencies.kt @@ -92,12 +92,20 @@ data class SourceSetCommonizerDependencies( if (unmatchedDependencies.isNotEmpty() || unmatchedMatchers.isNotEmpty()) { fail(buildString { + fun appendLineIndented(value: Any?) = appendLine(value.toString().prependIndent(" ")) + appendLine("$sourceSetName: Set of commonizer dependencies does not match given 'fileMatchers'") if (unmatchedDependencies.isNotEmpty()) { - appendLine("Unmatched dependencies: $unmatchedDependencies") + appendLine("Unmatched dependencies:") + unmatchedDependencies.forEach { dependency -> + appendLineIndented(dependency) + } } if (unmatchedMatchers.isNotEmpty()) { - appendLine("Unmatched fileMatchers: $unmatchedMatchers") + appendLine("Unmatched fileMatchers:") + unmatchedMatchers.forEach { matcher -> + appendLineIndented(matcher) + } } }) }