本文整理了Java中org.gradle.api.artifacts.Configuration.plus()
方法的一些代码示例,展示了Configuration.plus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.plus()
方法的具体详情如下:
包路径:org.gradle.api.artifacts.Configuration
类名称: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()))
内容来源于网络,如有侵权,请联系作者删除!