Skip to content

Commit

Permalink
#43 Refactoring: Use prefix() in toString()
Browse files Browse the repository at this point in the history
- also add TODO for next steps

Co-Authored-By: Sandra Parsick <[email protected]>
  • Loading branch information
georgberky and sparsick committed Jun 16, 2022
1 parent 3d0a2ed commit 626a04c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class UpdateMojo : AbstractMojo() {
.onEach { log.debug("execute in mojo canSkip (after map): ${it.second} ${it.first}") }
.filterNot { (_, branchName) -> git.hasRemoteBranch(branchName.toString()) }

// TODO next: extract updates with branch of other version, then log them

updatesWithoutBranchForVersion
.onEach { log.debug("execute in mojo after filter branches: ${it.second} ${it.first}") }
.forEach { (update, branchName) ->
Expand Down Expand Up @@ -79,7 +81,7 @@ class UpdateMojo : AbstractMojo() {
}

override fun toString(): String {
return "dependency-update/${groupId}-${artifactId}-${version}"
return "${prefix()}-${version}"
}
}
}

0 comments on commit 626a04c

Please sign in to comment.