当前位置: 首页>>代码示例>>Java>>正文


Java DependencySpecContainer类代码示例

本文整理汇总了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");
        }
    }
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:16,代码来源:SourceSetRenderer.java

示例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);
}
 
开发者ID:ajoberstar,项目名称:graclj,代码行数:8,代码来源:GracljInternal.java

示例3: getDependencies

import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
@Override
public DependencySpecContainer getDependencies() {
    return dependencies;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:DefaultJvmApiSpec.java

示例4: getDependencies

import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
@Override
public DependencySpecContainer getDependencies() {
    return new DefaultDependencySpecContainer();
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:DefaultJavaSourceSet.java

示例5: getDependencies

import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
/**
 * The component-level dependencies of this library.
 */
DependencySpecContainer getDependencies();
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:JvmLibrarySpec.java

示例6: getDependencies

import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
/**
 * The dependencies of this API.
 */
DependencySpecContainer getDependencies();
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:JvmApiSpec.java

示例7: getDependencies

import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
/**
 * The set of dependencies applicable to the entire test suite.
 */
DependencySpecContainer getDependencies();
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:JvmTestSuiteSpec.java

示例8: getDependencies

import org.gradle.platform.base.DependencySpecContainer; //导入依赖的package包/类
DependencySpecContainer getDependencies(); 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:2,代码来源:DependentSourceSet.java


注:本文中的org.gradle.platform.base.DependencySpecContainer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。