Example usage for org.springframework.boot.cli.command.init InitializrServiceMetadata getDependencies

List of usage examples for org.springframework.boot.cli.command.init InitializrServiceMetadata getDependencies

Introduction

In this page you can find the example usage for org.springframework.boot.cli.command.init InitializrServiceMetadata getDependencies.

Prototype

Collection<Dependency> getDependencies() 

Source Link

Document

Return the dependencies supported by the service.

Usage

From source file:org.springframework.boot.cli.command.init.ServiceCapabilitiesReportGenerator.java

private List<Dependency> getSortedDependencies(InitializrServiceMetadata metadata) {
    ArrayList<Dependency> dependencies = new ArrayList<Dependency>(metadata.getDependencies());
    Collections.sort(dependencies, new Comparator<Dependency>() {
        @Override/*  w  w w . java  2  s.  co m*/
        public int compare(Dependency o1, Dependency o2) {
            return o1.getId().compareTo(o2.getId());
        }
    });
    return dependencies;
}