Add shibboleth.net Maven repository
This is necessary for opensaml 4.1.0 Issue gh-9539
This commit is contained in:
parent
bfec10b0c7
commit
d39f737465
|
@ -74,6 +74,10 @@ class RepositoryConventionPlugin implements Plugin<Project> {
|
||||||
}
|
}
|
||||||
url = 'https://repo.spring.io/release/'
|
url = 'https://repo.spring.io/release/'
|
||||||
}
|
}
|
||||||
|
maven {
|
||||||
|
name = 'shibboleth'
|
||||||
|
url = 'https://build.shibboleth.net/nexus/content/repositories/releases/'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ public class RepositoryConventionPluginTests {
|
||||||
this.project.getPluginManager().apply(RepositoryConventionPlugin.class);
|
this.project.getPluginManager().apply(RepositoryConventionPlugin.class);
|
||||||
|
|
||||||
RepositoryHandler repositories = this.project.getRepositories();
|
RepositoryHandler repositories = this.project.getRepositories();
|
||||||
assertThat(repositories).hasSize(4);
|
assertThat(repositories).hasSize(5);
|
||||||
assertThat((repositories.get(0)).getName()).isEqualTo("MavenLocal");
|
assertThat((repositories.get(0)).getName()).isEqualTo("MavenLocal");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,12 +119,12 @@ public class RepositoryConventionPluginTests {
|
||||||
this.project.getPluginManager().apply(RepositoryConventionPlugin.class);
|
this.project.getPluginManager().apply(RepositoryConventionPlugin.class);
|
||||||
|
|
||||||
RepositoryHandler repositories = this.project.getRepositories();
|
RepositoryHandler repositories = this.project.getRepositories();
|
||||||
assertThat(repositories).hasSize(5);
|
assertThat(repositories).hasSize(6);
|
||||||
assertThat((repositories.get(0)).getName()).isEqualTo("MavenLocal");
|
assertThat((repositories.get(0)).getName()).isEqualTo("MavenLocal");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void assertSnapshotRepository(RepositoryHandler repositories) {
|
private void assertSnapshotRepository(RepositoryHandler repositories) {
|
||||||
assertThat(repositories).extracting(ArtifactRepository::getName).hasSize(5);
|
assertThat(repositories).extracting(ArtifactRepository::getName).hasSize(6);
|
||||||
assertThat(((MavenArtifactRepository) repositories.get(0)).getUrl().toString())
|
assertThat(((MavenArtifactRepository) repositories.get(0)).getUrl().toString())
|
||||||
.isEqualTo("https://repo.maven.apache.org/maven2/");
|
.isEqualTo("https://repo.maven.apache.org/maven2/");
|
||||||
assertThat(((MavenArtifactRepository) repositories.get(1)).getUrl().toString())
|
assertThat(((MavenArtifactRepository) repositories.get(1)).getUrl().toString())
|
||||||
|
@ -136,7 +136,7 @@ public class RepositoryConventionPluginTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void assertMilestoneRepository(RepositoryHandler repositories) {
|
private void assertMilestoneRepository(RepositoryHandler repositories) {
|
||||||
assertThat(repositories).extracting(ArtifactRepository::getName).hasSize(4);
|
assertThat(repositories).extracting(ArtifactRepository::getName).hasSize(5);
|
||||||
assertThat(((MavenArtifactRepository) repositories.get(0)).getUrl().toString())
|
assertThat(((MavenArtifactRepository) repositories.get(0)).getUrl().toString())
|
||||||
.isEqualTo("https://repo.maven.apache.org/maven2/");
|
.isEqualTo("https://repo.maven.apache.org/maven2/");
|
||||||
assertThat(((MavenArtifactRepository) repositories.get(1)).getUrl().toString())
|
assertThat(((MavenArtifactRepository) repositories.get(1)).getUrl().toString())
|
||||||
|
@ -146,7 +146,7 @@ public class RepositoryConventionPluginTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void assertReleaseRepository(RepositoryHandler repositories) {
|
private void assertReleaseRepository(RepositoryHandler repositories) {
|
||||||
assertThat(repositories).extracting(ArtifactRepository::getName).hasSize(3);
|
assertThat(repositories).extracting(ArtifactRepository::getName).hasSize(4);
|
||||||
assertThat(((MavenArtifactRepository) repositories.get(0)).getUrl().toString())
|
assertThat(((MavenArtifactRepository) repositories.get(0)).getUrl().toString())
|
||||||
.isEqualTo("https://repo.maven.apache.org/maven2/");
|
.isEqualTo("https://repo.maven.apache.org/maven2/");
|
||||||
assertThat(((MavenArtifactRepository) repositories.get(1)).getUrl().toString())
|
assertThat(((MavenArtifactRepository) repositories.get(1)).getUrl().toString())
|
||||||
|
|
Loading…
Reference in New Issue