org.gradle.api.artifacts.Configuration.plus()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(193)

本文整理了Java中org.gradle.api.artifacts.Configuration.plus()方法的一些代码示例,展示了Configuration.plus()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.plus()方法的具体详情如下:
包路径:org.gradle.api.artifacts.Configuration
类名称:Configuration
方法名:plus

Configuration.plus介绍

暂无

代码示例

代码示例来源:origin: net.corda.plugins/api-scanner

private static FileCollection compilationClasspath(ConfigurationContainer configurations) {
    return configurations.getByName("compile")
        .plus(configurations.getByName("compileOnly"));
  }
}

代码示例来源:origin: palantir/gradle-baseline

.map(File::new)
    .collect(Collectors.toList());
FileCollection errorProneFiles = conf.plus(project.files(bootstrapClasspath));
project.getTasks().withType(Test.class)
    .configureEach(test -> test.setBootstrapClasspath(errorProneFiles));

代码示例来源:origin: linkedin/pygradle

ConfigurationContainer configurations = project.getConfigurations();
FileCollection dependencies = configurations.getByName(CONFIGURATION_SETUP_REQS.getValue())
  .plus(configurations.getByName(CONFIGURATION_BUILD_REQS.getValue()))
  .plus(configurations.getByName(CONFIGURATION_PYTHON.getValue()))
  .plus(configurations.getByName(CONFIGURATION_WHEEL.getValue()))

代码示例来源:origin: gradle.plugin.com.linkedin.pygradle/pygradle-plugin

ConfigurationContainer configurations = project.getConfigurations();
FileCollection dependencies = configurations.getByName(CONFIGURATION_SETUP_REQS.getValue())
  .plus(configurations.getByName(CONFIGURATION_BUILD_REQS.getValue()))
  .plus(configurations.getByName(CONFIGURATION_PYTHON.getValue()))
  .plus(configurations.getByName(CONFIGURATION_WHEEL.getValue()))

相关文章