当前位置 : 主页 > 编程语言 > c++ >

gradle依赖逻辑

来源:互联网 收集:自由互联 发布时间:2021-07-03
dependency logic.txt @Overridevoid apply(Project project) { if(project.name.matches("[a-z]*-service")){ println("Skipping dependency managament plugin for ${project.name}") return }else { println("Added dependency managament plugin for ${pr
dependency logic.txt
@Override
void apply(Project project) {
    if(project.name.matches("[a-z]*-service")){
        println("Skipping dependency managament plugin for ${project.name}")
        return
    }else {
        println("Added dependency managament plugin for ${project.name}")
        DependencyManagementPlugin dependencyManagementPlugin = new DependencyManagementPlugin()
        dependencyManagementPlugin.apply(project)
    }
    project.extensions.configure(DependencyManagementExtension, new ClosureBackedAction
 
  ({
        imports {
            mavenBom("org.springframework.cloud:spring-cloud-dependencies:Brixton.BUILD-SNAPSHOT")
        }
    }))
}
 
网友评论