Skip to content

Commit 7e24c84

Browse files
author
Dave Syer
committed
Add test for IO dependencies in gradle
See gh-1180
1 parent 87fbc29 commit 7e24c84

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

spring-boot-integration-tests/src/test/java/org/springframework/boot/gradle/InstallTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ public void cleanInstall() throws Exception {
3939
.withArguments("-PbootVersion=" + BOOT_VERSION, "--stacktrace").run();
4040
}
4141

42+
@Test
43+
public void cleanInstallVersionManagement() throws Exception {
44+
project = new ProjectCreator().createProject("installer-io");
45+
project.newBuild().forTasks("install")
46+
.withArguments("-PbootVersion=" + BOOT_VERSION, "--stacktrace").run();
47+
}
48+
4249
@Test
4350
public void cleanInstallApp() throws Exception {
4451
project = new ProjectCreator().createProject("install-app");
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
buildscript {
2+
repositories {
3+
mavenLocal()
4+
}
5+
dependencies {
6+
classpath("org.springframework.boot:spring-boot-gradle-plugin:${project.bootVersion}")
7+
}
8+
}
9+
10+
apply plugin: 'java'
11+
apply plugin: 'maven'
12+
apply plugin: 'spring-boot'
13+
14+
group = 'installer'
15+
version = '0.0.0'
16+
17+
install {
18+
repositories.mavenInstaller {
19+
pom.project {
20+
parent {
21+
groupId 'org.springframework.boot'
22+
artifactId 'spring-boot-starter-parent'
23+
version "${project.bootVersion}"
24+
}
25+
}
26+
}
27+
}
28+
29+
jar {
30+
baseName = 'installer'
31+
}
32+
33+
repositories {
34+
mavenLocal()
35+
mavenCentral()
36+
}
37+
38+
dependencies {
39+
versionManagement 'io.spring.platform:platform-versions:1.0.0.RELEASE@properties'
40+
compile "org.springframework.boot:spring-boot-starter"
41+
}

0 commit comments

Comments
 (0)