Skip to content

Commit ff46800

Browse files
author
Dave Syer
committed
Fix some broken tests
1 parent 073342e commit ff46800

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

launcher/src/test/java/org/springframework/boot/loader/thin/DependencyResolverSettingsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void testProxy() throws Exception {
7474
@Test
7575
public void testThinRoot() throws Exception {
7676
Properties properties = new Properties();
77-
properties.setProperty("thin.root", "src/test/resources/settings/proxy");
77+
properties.setProperty("thin.root", "src/test/resources/settings/proxy/.m2");
7878
DependencyResolver.close();
7979
DependencyResolver resolver = DependencyResolver.instance();
8080
ProjectBuildingRequest request = getProjectBuildingRequest(resolver, properties);

launcher/src/test/java/org/springframework/boot/loader/thin/ThinJarLauncherTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public void settingsReadFromRoot() throws Exception {
312312
DependencyResolver.close();
313313
String home = System.getProperty("settings.home");
314314
System.setProperty("settings.home",
315-
new File("src/test/resources/settings/local").getAbsolutePath());
315+
new File("src/test/resources/settings/local/.m2").getAbsolutePath());
316316
try {
317317
deleteRecursively(new File(
318318
"target/thin/test/repository/org/springframework/spring-core"));

samples/shadow/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ buildscript {
55
shadowVersion = '2.0.1'
66
}
77
repositories {
8-
jcenter()
98
mavenLocal()
109
mavenCentral()
1110
maven { url "https://repo.spring.io/snapshot" }
1211
maven { url "https://repo.spring.io/milestone" }
12+
maven { url "https://plugins.gradle.org/m2/" }
1313
}
1414
dependencies {
1515
classpath "com.github.jengelman.gradle.plugins:shadow:${shadowVersion}"

0 commit comments

Comments
 (0)