Search in sources :

Example 1 with BomExtension

use of org.springframework.boot.build.bom.BomExtension in project spring-boot by spring-projects.

the class ExtractVersionConstraints method extractVersionProperties.

private void extractVersionProperties(String projectPath) {
    Object bom = getProject().project(projectPath).getExtensions().getByName("bom");
    BomExtension bomExtension = (BomExtension) bom;
    for (Library lib : bomExtension.getLibraries()) {
        String versionProperty = lib.getVersionProperty();
        if (versionProperty != null) {
            this.versionProperties.add(new VersionProperty(lib.getName(), versionProperty));
        }
    }
}
Also used : BomExtension(org.springframework.boot.build.bom.BomExtension) Library(org.springframework.boot.build.bom.Library)

Aggregations

BomExtension (org.springframework.boot.build.bom.BomExtension)1 Library (org.springframework.boot.build.bom.Library)1