作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中io.squark.yggdrasil.core.api.model.YggdrasilDependency
类的一些代码示例,展示了YggdrasilDependency
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YggdrasilDependency
类的具体详情如下:
包路径:io.squark.yggdrasil.core.api.model.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);
我是一名优秀的程序员,十分优秀!