Skip to content

Commit 88e9523

Browse files
committed
Merge branch '4.0.x' into 4.1.x
Closes gh-1638
2 parents 9a86f42 + 45b93dc commit 88e9523

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

gradle/plugins/conventions-plugin/src/main/java/org/springframework/ws/gradle/conventions/JavaBasePluginConventions.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
*/
3030
class JavaBasePluginConventions {
3131

32+
static final String SPRING_MILESTONE_REPOSITORY_NAME = "Spring Milestones";
33+
34+
static final String SPRING_SNAPSHOT_REPOSITORY_NAME = "Spring Snapshots";
35+
36+
static final String SHIBBOLETH_RELEASES_REPOSITORY_NAME = "Shibboleth Releases";
37+
3238
void apply(Project project) {
3339
configureRepositories(project);
3440
project.getTasks().withType(Javadoc.class).configureEach((javadoc) -> {
@@ -44,7 +50,7 @@ void apply(Project project) {
4450
private void configureRepositories(Project project) {
4551
project.getRepositories().mavenCentral();
4652
project.getRepositories().maven((repository) -> {
47-
repository.setName("Shibboleth Releases");
53+
repository.setName(SHIBBOLETH_RELEASES_REPOSITORY_NAME);
4854
repository.setUrl("https://build.shibboleth.net/nexus/content/repositories/releases");
4955
repository.content((content) -> {
5056
content.includeGroup("org.opensaml");
@@ -54,13 +60,13 @@ private void configureRepositories(Project project) {
5460
String version = project.getVersion().toString();
5561
if (version.contains("-")) {
5662
project.getRepositories().maven((repository) -> {
57-
repository.setName("Spring Milestones");
63+
repository.setName(SPRING_MILESTONE_REPOSITORY_NAME);
5864
repository.setUrl("https://repo.spring.io/milestone");
5965
});
6066
}
6167
if (version.endsWith("-SNAPSHOT")) {
6268
project.getRepositories().maven((repository) -> {
63-
repository.setName("Spring Snapshots");
69+
repository.setName(SPRING_SNAPSHOT_REPOSITORY_NAME);
6470
repository.setUrl("https://repo.spring.io/snapshot");
6571
});
6672
}

gradle/plugins/conventions-plugin/src/main/java/org/springframework/ws/gradle/conventions/VersionUpgradePluginConventions.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ class VersionUpgradePluginConventions {
3535
void apply(Project project) {
3636
project.getPlugins().apply(VersionsPlugin.class);
3737
project.getTasks().withType(DependencyUpdatesTask.class, (updateTask) -> {
38+
updateTask.doFirst((task) -> project.getRepositories()
39+
.removeIf((candidate) -> candidate.getName()
40+
.equals(JavaBasePluginConventions.SPRING_SNAPSHOT_REPOSITORY_NAME)));
3841
updateTask.setFilterConfigurations((configuration) -> !(configuration.getName().contains("_")
3942
&& configuration.getName().endsWith("+")));
4043
VersionUpgradePolicy upgradePolicy = getUpgradePolicy(project);

0 commit comments

Comments
 (0)