use of org.gradle.api.artifacts.repositories.IvyPatternRepositoryLayout in project curiostack by curioswitch.
the class SetupTask method addGcloudRepository.
private void addGcloudRepository() {
getProject().getRepositories().clear();
getProject().getRepositories().ivy(repo -> {
repo.setUrl(config.distBaseUrl());
repo.layout("pattern", layout -> {
IvyPatternRepositoryLayout ivyLayout = (IvyPatternRepositoryLayout) layout;
ivyLayout.artifact("[artifact](-[revision]-[classifier]).[ext]");
ivyLayout.ivy("[revision]/ivy.xml");
});
});
}
use of org.gradle.api.artifacts.repositories.IvyPatternRepositoryLayout in project spring-security by spring-projects.
the class GitHubChangelogPlugin method createRepository.
private void createRepository(Project project) {
IvyArtifactRepository repository = project.getRepositories().ivy(new Action<IvyArtifactRepository>() {
@Override
public void execute(IvyArtifactRepository repository) {
repository.setUrl("https://github.com/");
repository.patternLayout(new Action<IvyPatternRepositoryLayout>() {
@Override
public void execute(IvyPatternRepositoryLayout layout) {
layout.artifact("[organization]/[artifact]/releases/download/v[revision]/[artifact].[ext]");
}
});
repository.getMetadataSources().artifact();
}
});
project.getRepositories().exclusiveContent(new Action<ExclusiveContentRepository>() {
@Override
public void execute(ExclusiveContentRepository exclusiveContentRepository) {
exclusiveContentRepository.forRepositories(repository);
exclusiveContentRepository.filter(new Action<InclusiveRepositoryContentDescriptor>() {
@Override
public void execute(InclusiveRepositoryContentDescriptor descriptor) {
descriptor.includeGroup("spring-io");
}
});
}
});
}
Aggregations