File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
spring-boot-integration-tests/src/test
java/org/springframework/boot/gradle Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,13 @@ public void cleanInstall() throws Exception {
39
39
.withArguments ("-PbootVersion=" + BOOT_VERSION , "--stacktrace" ).run ();
40
40
}
41
41
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
+
42
49
@ Test
43
50
public void cleanInstallApp () throws Exception {
44
51
project = new ProjectCreator ().createProject ("install-app" );
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments