diff --git a/spring-boot-integration-tests/src/test/java/org/springframework/boot/gradle/MultiProjectRepackagingTests.java b/spring-boot-integration-tests/src/test/java/org/springframework/boot/gradle/MultiProjectRepackagingTests.java index 7097735589..3743779136 100644 --- a/spring-boot-integration-tests/src/test/java/org/springframework/boot/gradle/MultiProjectRepackagingTests.java +++ b/spring-boot-integration-tests/src/test/java/org/springframework/boot/gradle/MultiProjectRepackagingTests.java @@ -24,7 +24,6 @@ import org.gradle.tooling.ProjectConnection; import org.junit.BeforeClass; import org.junit.Test; import org.springframework.boot.dependency.tools.ManagedDependencies; -import org.springframework.util.FileCopyUtils; import static org.hamcrest.Matchers.notNullValue; import static org.junit.Assert.assertThat; @@ -48,10 +47,8 @@ public class MultiProjectRepackagingTests { @Test public void repackageWithTransitiveFileDependency() throws Exception { - FileCopyUtils.copy(new File("src/test/resources/foo.jar"), new File( - "target/multi-project-repackage/foo.jar")); project.newBuild().forTasks("clean", "build") - .withArguments("-PbootVersion=" + BOOT_VERSION, "-Prepackage=true").run(); + .withArguments("-PbootVersion=" + BOOT_VERSION, "-Prepackage=true").run(); File buildLibs = new File("target/multi-project-repackage/main/build/libs"); JarFile jarFile = new JarFile(new File(buildLibs, "main.jar")); assertThat(jarFile.getEntry("lib/commons-logging-1.1.3.jar"), notNullValue()); diff --git a/spring-boot-integration-tests/src/test/resources/multi-project-repackage/common/lib/foo.jar b/spring-boot-integration-tests/src/test/resources/multi-project-repackage/common/lib/foo.jar new file mode 100644 index 0000000000..6b017f90e8 Binary files /dev/null and b/spring-boot-integration-tests/src/test/resources/multi-project-repackage/common/lib/foo.jar differ