本文整理汇总了Java中org.gradle.platform.base.DependencySpecContainer类的典型用法代码示例。如果您正苦于以下问题:Java DependencySpecContainer类的具体用法?Java DependencySpecContainer怎么用?Java DependencySpecContainer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DependencySpecContainer类属于org.gradle.platform.base包,在下文中一共展示了DependencySpecContainer类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: renderSourceSetDependencies
import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
private void renderSourceSetDependencies(LanguageSourceSet sourceSet, TextReportBuilder builder) {
if (sourceSet instanceof DependentSourceSet) {
DependencySpecContainer dependencies = ((DependentSourceSet) sourceSet).getDependencies();
if (!dependencies.isEmpty()) {
builder.collection("dependencies", dependencies.getDependencies(), new ReportRenderer<DependencySpec, TextReportBuilder>() {
@Override
public void render(DependencySpec model, TextReportBuilder output) throws IOException {
if (model instanceof ProjectDependencySpec) {
output.item(model.getDisplayName());
}
}
}, "dependencies");
}
}
}
示例2: resolve
import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
public FileCollection resolve(DependencySpecContainer specs) {
Stream<String> notations = specs.getDependencies().stream()
.filter(spec -> spec instanceof ModuleDependencySpec)
.map(spec -> (ModuleDependencySpec) spec)
.map(spec -> spec.getGroup() + ":" + spec.getName() + ":" + spec.getVersion());
return resolve(notations);
}
示例3: getDependencies
import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
@Override
public DependencySpecContainer getDependencies() {
return dependencies;
}
示例4: getDependencies
import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
@Override
public DependencySpecContainer getDependencies() {
return new DefaultDependencySpecContainer();
}
示例5: getDependencies
import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
/**
* The component-level dependencies of this library.
*/
DependencySpecContainer getDependencies();
示例6: getDependencies
import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
/**
* The dependencies of this API.
*/
DependencySpecContainer getDependencies();
示例7: getDependencies
import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
/**
* The set of dependencies applicable to the entire test suite.
*/
DependencySpecContainer getDependencies();
示例8: getDependencies
import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
DependencySpecContainer getDependencies();