Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoayyed committed Dec 4, 2022
1 parent 7316c5a commit f0da75b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Comparator;
import java.util.stream.Collectors;

public class OverlayProjectMetadataController extends ProjectMetadataController {
private final DependencyMetadataProvider dependencyMetadataProvider;
Expand Down Expand Up @@ -53,7 +54,7 @@ private ResponseEntity<String> dependenciesFor(InitializrMetadataVersion version
.filter(ver -> ver.getType().equals(CasOverlayBuildSystem.TYPE))
.map(SupportedVersion::getVersion)
.sorted(Comparator.reverseOrder())
.toList();
.collect(Collectors.toList());

var versionToChoose = (casVersion != null)
? VersionUtils.parse(casVersion)
Expand Down

0 comments on commit f0da75b

Please sign in to comment.