本文整理了Java中org.gradle.api.artifacts.Configuration.getExtendsFrom()
方法的一些代码示例,展示了Configuration.getExtendsFrom()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.getExtendsFrom()
方法的具体详情如下:
包路径:org.gradle.api.artifacts.Configuration
类名称:Configuration
方法名:getExtendsFrom
暂无
代码示例来源:origin: typelead/gradle-eta
@Override
public Set<EtaDependency> getAllDependencies() {
Set<EtaDependency> allDependencies = new LinkedHashSet<>();
allDependencies.addAll(dependencies);
for (Configuration configuration : parentConfiguration.getExtendsFrom()) {
EtaConfiguration etaConfiguration =
ExtensionHelper.getExtension(configuration, EtaConfiguration.class);
allDependencies.addAll(etaConfiguration.getAllDependencies());
}
return allDependencies;
}
代码示例来源:origin: com.android.tools.build/gradle-core
/**
* Build a set of configuration containing all the Configuration object that a given
* configuration extends from, directly or transitively.
*
* @param configuration the configuration
* @return a set of config.
*/
private static Set<Configuration> flattenConfigurations(@NonNull Configuration configuration) {
Set<Configuration> configs = Sets.newHashSet();
configs.add(configuration);
for (Configuration extend : configuration.getExtendsFrom()) {
configs.addAll(flattenConfigurations(extend));
}
return configs;
}
代码示例来源:origin: com.amazon.device.tools.build/gradle-core
/**
* Build a set of configuration containing all the Configuration object that a given
* configuration extends from, directly or transitively.
*
* @param configuration the configuration
* @return a set of config.
*/
private static Set<Configuration> flattenConfigurations(@NonNull Configuration configuration) {
Set<Configuration> configs = Sets.newHashSet();
configs.add(configuration);
for (Configuration extend : configuration.getExtendsFrom()) {
configs.addAll(flattenConfigurations(extend));
}
return configs;
}
代码示例来源:origin: MinecraftForge/ForgeGradle
@Override
protected void applyVanillaUserPlugin()
{
super.applyVanillaUserPlugin();
// remove client deps
Configuration config = project.getConfigurations().getByName(CONFIG_MC_DEPS);
List<Configuration> configs = Lists.newArrayList(config.getExtendsFrom());
configs.remove(project.getConfigurations().getByName(CONFIG_MC_DEPS_CLIENT));
config.setExtendsFrom(configs);
}
代码示例来源:origin: typelead/gradle-eta
for (Configuration configuration : parentConfiguration.getExtendsFrom()) {
DefaultEtaConfiguration etaConfiguration =
ExtensionHelper.getExtension(configuration,
代码示例来源:origin: typelead/gradle-eta
@Override
public Set<Provider<File>> getAllArtifacts(final Project project) {
Set<Provider<File>> allArtifacts = new LinkedHashSet<Provider<File>>();
allArtifacts.addAll(artifacts);
for (EtaDependency dependency : getDependencies()) {
if (dependency instanceof EtaProjectDependency) {
final EtaProjectDependency projectDependency =
((EtaProjectDependency) dependency);
final EtaConfiguration etaConfiguration =
ConfigurationUtils.getEtaConfiguration
(projectDependency.getProject(project),
projectDependency.getTargetConfiguration());
if (etaConfiguration != null) {
allArtifacts.addAll(etaConfiguration.getAllArtifacts(project));
}
}
}
for (Configuration configuration : parentConfiguration.getExtendsFrom()) {
final EtaConfiguration etaConfiguration =
ExtensionHelper.getExtension(configuration, EtaConfiguration.class);
allArtifacts.addAll(etaConfiguration.getAllArtifacts(project));
}
return allArtifacts;
}
代码示例来源:origin: typelead/gradle-eta
for (Configuration configuration : parentConfiguration.getExtendsFrom()) {
allResolvedDependencies.addAll
(ConfigurationUtils.getEtaConfiguration(configuration)
代码示例来源:origin: typelead/gradle-eta
for (Configuration parent : configuration.getExtendsFrom()) {
injectProjectDependencies(project, dependencies, parent);
内容来源于网络,如有侵权,请联系作者删除!