Skip to content

Commit 68fbd33

Browse files
authored
Reformat, no change (#279)
1 parent ae72c25 commit 68fbd33

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

‎nmcp-tasks/src/main/kotlin/nmcp/internal/task/nmcpCheckFiles.kt‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@ internal fun nmcpCheckFiles(inputFiles: GInputFiles, outputFile: GOutputFile, al
2121
"Nmcp: there are no files to publish. Double check your configuration."
2222
}
2323
val gavs = inputFiles.mapNotNull {
24-
if (!it.normalizedPath.endsWith(".pom")) {
25-
return@mapNotNull null
26-
}
24+
if (!it.normalizedPath.endsWith(".pom")) {
25+
return@mapNotNull null
26+
}
2727

28-
Gav.from(it.normalizedPath.substringBeforeLast('/'))
29-
}
28+
Gav.from(it.normalizedPath.substringBeforeLast('/'))
29+
}
3030

31-
val groups = gavs.map { it.groupId }.distinct()
32-
val artifacts = gavs.map { it.artifactId }.distinct()
33-
val versions = gavs.map { it.baseVersion }.distinct()
31+
val groups = gavs.map { it.groupId }.distinct()
32+
val artifacts = gavs.map { it.artifactId }.distinct()
33+
val versions = gavs.map { it.baseVersion }.distinct()
3434

35-
val deploymentName = buildString {
36-
append(groups.toDisplayName())
37-
append(':')
38-
append(artifacts.toDisplayName())
39-
append(':')
40-
append(versions.toDisplayName())
41-
}
42-
outputFile.writeText(deploymentName)
35+
val deploymentName = buildString {
36+
append(groups.toDisplayName())
37+
append(':')
38+
append(artifacts.toDisplayName())
39+
append(':')
40+
append(versions.toDisplayName())
41+
}
42+
outputFile.writeText(deploymentName)
4343
}
4444

4545
private fun longestCommonPrefix(strings: List<String>): String {

0 commit comments

Comments
 (0)