Search in sources :

Example 1 with ImportsHandler

use of io.spring.gradle.dependencymanagement.dsl.ImportsHandler in project spring-boot by spring-projects.

the class DependencyManagementPluginFeatures method apply.

@Override
public void apply(Project project) {
    project.getPlugins().apply(DependencyManagementPlugin.class);
    DependencyManagementExtension dependencyManagement = project.getExtensions().findByType(DependencyManagementExtension.class);
    dependencyManagement.imports(new Action<ImportsHandler>() {

        @Override
        public void execute(ImportsHandler importsHandler) {
            importsHandler.mavenBom(SPRING_BOOT_BOM);
        }
    });
}
Also used : ImportsHandler(io.spring.gradle.dependencymanagement.dsl.ImportsHandler) DependencyManagementExtension(io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension)

Aggregations

DependencyManagementExtension (io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension)1 ImportsHandler (io.spring.gradle.dependencymanagement.dsl.ImportsHandler)1