Skip to content

Commit

Permalink
Build fails when sorting plugins with uppercase artifact name (#3671)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Oct 3, 2024
1 parent 26b10aa commit edc22c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample-plugin/check.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ if (settings.activeProfiles.any {it ==~ /^2[.][0-9]+[.]x$/}) {
def sortedDeps = managedPluginDeps.toSorted { a, b ->
def aSplit = a.split(':')
def bSplit = b.split(':')
def result = aSplit[0] <=> bSplit[0]
def result = aSplit[0].toLowerCase() <=> bSplit[0].toLowerCase()
if (result == 0) {
result = aSplit[1] <=> bSplit[1]
result = aSplit[1].toLowerCase() <=> bSplit[1].toLowerCase()
}
result
}
Expand Down

0 comments on commit edc22c4

Please sign in to comment.