From b838513fda778a9bbbcd704a7a77aac9ed2ceb6c Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 27 May 2015 15:31:10 +0200 Subject: [PATCH] Upgrade to Spring Framework 4.2.0.RC1 Closes gh-2947 --- .../cli/compiler/grape/AetherGrapeEngineTests.java | 10 ++++++---- spring-boot-dependencies/pom.xml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java b/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java index deca0e325e14..d00a4f04f072 100644 --- a/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java +++ b/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2014 the original author or authors. + * Copyright 2012-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,7 +51,9 @@ public class AetherGrapeEngineTests { private AetherGrapeEngine createGrapeEngine() { return AetherGrapeEngineFactory.create(this.groovyClassLoader, Arrays .asList(new RepositoryConfiguration("central", URI - .create("http://repo1.maven.org/maven2"), false)), + .create("http://repo1.maven.org/maven2"), false), + new RepositoryConfiguration("spring-milestone", URI + .create("http://repo.spring.io/milestone"), false)), new DependencyResolutionContext()); } @@ -92,7 +94,7 @@ public void run() { List repositories = (List) ReflectionTestUtils .getField(grapeEngine, "repositories"); - assertEquals(1, repositories.size()); + assertEquals(2, repositories.size()); assertEquals("central-mirror", repositories.get(0).getId()); } }); @@ -109,7 +111,7 @@ public void run() { List repositories = (List) ReflectionTestUtils .getField(grapeEngine, "repositories"); - assertEquals(1, repositories.size()); + assertEquals(2, repositories.size()); Authentication authentication = repositories.get(0).getAuthentication(); assertNotNull(authentication); } diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index 00eab3e60144..b7885f00bdf3 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -119,7 +119,7 @@ 1.15 4.10.4 1.0-groovy-2.4 - 4.2.0.BUILD-SNAPSHOT + 4.2.0.RC1 1.5.0.M1 1.1.1.RELEASE 3.0.4.RELEASE