Search in sources :

Example 1 with CheckClasspathForProhibitedDependencies

use of org.springframework.boot.build.classpath.CheckClasspathForProhibitedDependencies in project spring-boot by spring-projects.

the class JavaConventions method createProhibitedDependenciesCheck.

private void createProhibitedDependenciesCheck(Configuration classpath, Project project) {
    CheckClasspathForProhibitedDependencies checkClasspathForProhibitedDependencies = project.getTasks().create("check" + StringUtils.capitalize(classpath.getName() + "ForProhibitedDependencies"), CheckClasspathForProhibitedDependencies.class);
    checkClasspathForProhibitedDependencies.setClasspath(classpath);
    project.getTasks().getByName(JavaBasePlugin.CHECK_TASK_NAME).dependsOn(checkClasspathForProhibitedDependencies);
}
Also used : CheckClasspathForProhibitedDependencies(org.springframework.boot.build.classpath.CheckClasspathForProhibitedDependencies)

Aggregations

CheckClasspathForProhibitedDependencies (org.springframework.boot.build.classpath.CheckClasspathForProhibitedDependencies)1