File tree 10 files changed +22
-36
lines changed
recipe-test-support/src/main/java/org/springframework/sbm/test
java/org/springframework/sbm/boot/properties/actions
java/org/springframework/sbm
test/java/org/springframework/sbm
multi-module-simple/expected
10 files changed +22
-36
lines changed Original file line number Diff line number Diff line change @@ -133,12 +133,11 @@ public void andApplyRecipeComparingWithExpected(String recipeName) {
133
133
try (Stream <Path > walk = Files .walk (expectedProject )) {
134
134
result = walk .filter (Files ::isRegularFile )
135
135
.map (f -> expectedProject .relativize (f ))
136
- .filter (f -> f .toString ().startsWith ("target/" ))
137
136
.collect (Collectors .toList ());
138
137
}
139
138
140
139
result .stream ()
141
- .forEach (r -> assertThat (r ).hasSameTextualContentAs (migratedProject .resolve (r )));
140
+ .forEach (r -> assertThat (expectedProject . resolve ( r ) ).hasSameTextualContentAs (migratedProject .resolve (r )));
142
141
} catch (Exception exception ) {
143
142
throw new RuntimeException (exception );
144
143
}
Original file line number Diff line number Diff line change 16
16
package org .springframework .sbm .boot .properties .actions ;
17
17
18
18
import lombok .AllArgsConstructor ;
19
+ import lombok .Getter ;
19
20
import lombok .NoArgsConstructor ;
21
+ import lombok .Setter ;
22
+ import lombok .experimental .SuperBuilder ;
23
+
20
24
import org .springframework .sbm .boot .properties .api .SpringBootApplicationProperties ;
21
25
import org .springframework .sbm .boot .properties .search .SpringBootApplicationPropertiesResourceListFilter ;
22
26
import org .springframework .sbm .build .api .Module ;
27
31
28
32
@ NoArgsConstructor
29
33
@ AllArgsConstructor
34
+ @ Getter
35
+ @ Setter
36
+ @ SuperBuilder
30
37
public class AddSpringBootApplicationPropertiesAction extends AbstractAction {
31
38
32
39
public static final Path APPLICATION_PROPERTIES_PATH = Path .of ("src/main/resources/application.properties" );
Original file line number Diff line number Diff line change 91
91
plugin :
92
92
groupId : org.springframework.boot
93
93
artifactId : spring-boot-maven-plugin
94
+ version : 2.7.3
94
95
condition :
95
96
type : org.springframework.sbm.build.migration.conditions.MavenPluginDoesNotExist
96
97
plugin :
108
109
<plugin>
109
110
<groupId>org.springframework.boot</groupId>
110
111
<artifactId>spring-boot-maven-plugin</artifactId>
112
+ <version>2.7.3</version>
111
113
</plugin>
112
114
</plugins>
113
115
</build>
114
116
115
117
- type : org.springframework.sbm.boot.properties.actions.AddSpringBootApplicationPropertiesAction
118
+ addDefaultPropertiesFileToTopModules : true
116
119
condition :
117
120
type : org.springframework.sbm.boot.properties.conditions.NoSpringBootApplicationPropertiesExists
118
121
description : Create application.properties file.
Original file line number Diff line number Diff line change 7
7
-->
8
8
9
9
<project xmlns =" http://maven.apache.org/POM/4.0.0"
10
- xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance"
11
- xsi:schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
10
+ xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance"
11
+ xsi:schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
12
12
<groupId >${groupId} </groupId >
13
13
<artifactId >${artifactId} </artifactId >
14
14
<version >${version} </version >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!--
3
- ~ Copyright 2021 - 2022 the original author or authors.
3
+ ~ Copyright 2021 VMware, Inc.
4
+ ~ SPDX-License-Identifier: Apache License 2.0
4
5
~
5
- ~ Licensed under the Apache License, Version 2.0 (the "License");
6
- ~ you may not use this file except in compliance with the License.
7
- ~ You may obtain a copy of the License at
8
- ~
9
- ~ https://www.apache.org/licenses/LICENSE-2.0
10
- ~
11
- ~ Unless required by applicable law or agreed to in writing, software
12
- ~ distributed under the License is distributed on an "AS IS" BASIS,
13
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- ~ See the License for the specific language governing permissions and
15
- ~ limitations under the License.
6
+ ~ @author: fkrueger
16
7
-->
17
8
18
9
<project xmlns =" http://maven.apache.org/POM/4.0.0"
32
23
<dependency >
33
24
<groupId >org.springframework.boot</groupId >
34
25
<artifactId >spring-boot-dependencies</artifactId >
35
- <version >2.6 .3</version >
26
+ <version >2.7 .3</version >
36
27
<type >pom</type >
37
28
<scope >import</scope >
38
29
</dependency >
54
45
<plugin >
55
46
<groupId >org.springframework.boot</groupId >
56
47
<artifactId >spring-boot-maven-plugin</artifactId >
48
+ <version >2.7.3</version >
57
49
</plugin >
58
50
</plugins >
59
51
</build >
Original file line number Diff line number Diff line change 1
- package com . boot . migrator ;
1
+ package org . springframework . sbm ;
2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
Original file line number Diff line number Diff line change 1
- #
2
- # Copyright 2021 - 2022 the original author or authors.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # https://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #
16
-
Original file line number Diff line number Diff line change 1
- package com . boot . migrator ;
1
+ package org . springframework . sbm ;
2
2
3
3
import org .junit .jupiter .api .Test ;
4
4
import org .springframework .boot .test .context .SpringBootTest ;
Original file line number Diff line number Diff line change 54
54
<plugin >
55
55
<groupId >org.springframework.boot</groupId >
56
56
<artifactId >spring-boot-maven-plugin</artifactId >
57
+ <version >2.7.3</version >
57
58
</plugin >
58
59
</plugins >
59
60
</build >
Original file line number Diff line number Diff line change 36
36
<dependency >
37
37
<groupId >org.springframework.boot</groupId >
38
38
<artifactId >spring-boot-dependencies</artifactId >
39
- <version >2.6 .3</version >
39
+ <version >2.7 .3</version >
40
40
<type >pom</type >
41
41
<scope >import</scope >
42
42
</dependency >
You can’t perform that action at this time.
0 commit comments