Java 类org.gradle.api.artifacts.repositories.IvyPatternRepositoryLayout 实例源码

项目:curiostack    文件:SetupTask.java   
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");
                });
          });
}