Skip to content

Commit

Permalink
fix: sort artifact results
Browse files Browse the repository at this point in the history
  • Loading branch information
TimmyOtool committed Mar 10, 2023
1 parent 9bddcb3 commit 4f752fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.nongfenqi.nexus.plugin'
version '1.1.0'
version '1.1.1'


apply plugin: 'java'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ public List<String> artifactId(

searchRequestBuilder.offset(0)
.limit(limit)
.sortField("assets.attributes.content.last_modified")
.sortDirection(SortDirection.DESC);
.sortField("assets.attributes.maven2.artifactId")
.sortDirection(SortDirection.ASC);

SearchRequest searchRequest = searchRequestBuilder.build();
log.debug("rundeck maven version query: {}", searchRequest);
Expand Down

0 comments on commit 4f752fe

Please sign in to comment.