diff --git a/spring-boot-integration-tests/src/test/java/org/springframework/boot/gradle/InstallTests.java b/spring-boot-integration-tests/src/test/java/org/springframework/boot/gradle/InstallTests.java index 89eff86ec5..c966cdf910 100644 --- a/spring-boot-integration-tests/src/test/java/org/springframework/boot/gradle/InstallTests.java +++ b/spring-boot-integration-tests/src/test/java/org/springframework/boot/gradle/InstallTests.java @@ -39,6 +39,13 @@ public class InstallTests { .withArguments("-PbootVersion=" + BOOT_VERSION, "--stacktrace").run(); } + @Test + public void cleanInstallVersionManagement() throws Exception { + project = new ProjectCreator().createProject("installer-io"); + project.newBuild().forTasks("install") + .withArguments("-PbootVersion=" + BOOT_VERSION, "--stacktrace").run(); + } + @Test public void cleanInstallApp() throws Exception { project = new ProjectCreator().createProject("install-app"); diff --git a/spring-boot-integration-tests/src/test/resources/installer-io.gradle b/spring-boot-integration-tests/src/test/resources/installer-io.gradle new file mode 100644 index 0000000000..9ed373c88d --- /dev/null +++ b/spring-boot-integration-tests/src/test/resources/installer-io.gradle @@ -0,0 +1,41 @@ +buildscript { + repositories { + mavenLocal() + } + dependencies { + classpath("org.springframework.boot:spring-boot-gradle-plugin:${project.bootVersion}") + } +} + +apply plugin: 'java' +apply plugin: 'maven' +apply plugin: 'spring-boot' + +group = 'installer' +version = '0.0.0' + +install { + repositories.mavenInstaller { + pom.project { + parent { + groupId 'org.springframework.boot' + artifactId 'spring-boot-starter-parent' + version "${project.bootVersion}" + } + } + } +} + +jar { + baseName = 'installer' +} + +repositories { + mavenLocal() + mavenCentral() +} + +dependencies { + versionManagement 'io.spring.platform:platform-versions:1.0.0.RELEASE@properties' + compile "org.springframework.boot:spring-boot-starter" +}