Skip to content

Commit 034fd2a

Browse files
author
Ganeshwara Hananda
committed
Update the target file of the update script to 'artifacts.snapshot'
1 parent 5d6862f commit 034fd2a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

library/maven/update.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import java.nio.file.Paths
66
fun main() {
77
val baseDir = Paths.get(System.getenv("BUILD_WORKSPACE_DIRECTORY"))
88
val snapshotCommand = listOf("bazel", "query", "@maven//...")
9-
val snapshotFile = baseDir.resolve("dependencies").resolve("maven").resolve("snapshot")
9+
val snapshotFile = baseDir.resolve("dependencies").resolve("maven").resolve("artifacts.snapshot")
1010

1111
println("-------------------------")
1212
println("Regenerating a new '$snapshotFile' from WORKSPACE...")
@@ -23,21 +23,21 @@ fun main() {
2323
val added = snapshotNew.minus(snapshotOld)
2424
val removed = snapshotOld.minus(snapshotNew)
2525
println("DONE! '$snapshotFile' updated: ${added.count()} dependencies added, ${removed.count()} dependencies removed.")
26-
print("Added dependencies:")
26+
print("Added dependencies: ")
2727
if (added.isNotEmpty()) {
2828
println()
2929
added.forEach { dep -> println(" - $dep") }
3030
}
3131
else {
32-
println(" none.")
32+
println("none.")
3333
}
34-
print("Removed dependencies:")
34+
print("Removed dependencies: ")
3535
if (removed.isNotEmpty()) {
3636
println()
3737
removed.forEach { dep -> println(" - $dep") }
3838
}
3939
else {
40-
println(" none.")
40+
println("none.")
4141
}
4242
println("-------------------------")
4343
}

0 commit comments

Comments
 (0)