gpt4 book ai didi

io.squark.yggdrasil.core.api.model.YggdrasilDependency类的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 16:01:31 28 4
gpt4 key购买 nike

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

YggdrasilDependency介绍

暂无

代码示例

代码示例来源:origin: io.squark.yggdrasil/yggdrasil-api

@Override
public String toString() {
  return "YggdrasilDependency{" + "groupId='" + groupId + '\'' + ", artifactId='" + artifactId + '\'' + ", extension='" +
      extension + '\'' + ", classifier='" + classifier + '\'' + ", version='" + version + '\'' + ", file=" + file +
      ", scope='" + scope + '\'' + ", optional'" + optional + '\'' + ", parent='" +
      (getParent().isPresent() ? getParent().get().toShortString() : null) + ", childDependencies=" + childDependencies +
      '}';
}

代码示例来源:origin: io.squark.yggdrasil/yggdrasil-api

public YggdrasilDependency(String groupId, String artifactId, String extension, String classifier, String version, File file,
  String scope, @Nullable Set<YggdrasilDependency> childDependencies, @Nullable String defaultScope) {
  this.groupId = groupId;
  this.artifactId = artifactId;
  this.extension = extension;
  this.classifier = classifier;
  this.version = version;
  this.file = file;
  this.scope = scope;
  if (StringUtils.isEmpty(this.scope)) {
    this.scope = defaultScope;
  }
  this.childDependencies = new HashSet<>();
  if (CollectionUtils.isNotEmpty(childDependencies)) {
    for (YggdrasilDependency childDependency : childDependencies) {
      childDependency.setParent(this);
      this.childDependencies.add(childDependency);
    }
  }
}

代码示例来源:origin: io.squark.yggdrasil/yggdrasil-maven-provider

Artifact aetherArtifact = new DefaultArtifact(dependency.getGroupId(), dependency.getArtifactId(),
      dependency.getClassifier(), dependency.getExtension(), dependency.getVersion());
  Dependency mavenDependency = new Dependency(aetherArtifact, null);
  mavenDependencies.add(mavenDependency);
try {
  return resolveDependencies(null, mavenDependencies, repositorySystem, repositorySystemSession,
      remoteRepositories).getChildDependencies();
} catch (DependencyCollectionException | org.eclipse.aether.resolution.DependencyResolutionException e) {
  throw new DependencyResolutionException(e);

代码示例来源:origin: io.squark.yggdrasil/yggdrasil-maven-provider-api

new YggdrasilDependency(groupId, artifactId, extension, classifier, version, file, scope, children,
    Scopes.PROVIDED, optional);
if (exclusions != null) {
  for (String exclusion : exclusions) {
    Pattern pattern = Pattern.compile(exclusion);
    Matcher matcher = pattern.matcher(dependency.toShortStringWithoutVersion());
    if (matcher.matches()) {
      dependency.setExcluded(true);

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com