@@ -43,94 +43,95 @@ void renderReport() throws IOException {
43
43
.build ();
44
44
45
45
@ Language ("adoc" )
46
- String expectedOutput = """
47
- [[index]]
48
- = Spring Boot 3 Upgrade Report
49
- Fabian Krüger
50
- :source-highlighter: highlight.js
51
- :highlightjs-languages: java
52
- :linkcss:
53
- :doctype: book
54
- :idprefix:
55
- :idseparator: -
56
- :toc: left
57
- :sectnumlevels: 2
58
- :toclevels: 2
59
- :tabsize: 4
60
- :numbered:
61
- :sectanchors:
62
- :sectnums:
63
- :hide-uri-scheme:
64
- :docinfo: shared,private
65
- :attribute-missing: warn
66
- :chomp: default headers packages
67
- :spring-boot-artifactory-repo: snapshot
68
- :github-tag: main
69
- :spring-boot-version: current
70
-
71
- == Introduction
72
- [cols="1h,3"]
73
- |===
74
- | Scanned dir | `<PATH>`
75
- | Revision | Scanned project not under Git
76
- | Coordinate | `com.example:dummy-root:0.1.0-SNAPSHOT`
77
- | Boot version | `2.7.3`
78
- | Changes | 2
79
- |===
80
-
81
- The application was scanned and matched against the changes listed in the
82
- https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.5-Release-Notes[Spring Boot 2.5 Release Notes]
83
- as well as from https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-5.x[Spring Framework 5.x Release Notes].
84
-
85
- The Relevant Changes section lists all potentially required changes to upgrade the scanned application to Spring Boot 2.5.6.
86
-
87
- NOTE: JDK 17 is required for Spring Boot 3
88
-
89
- == Relevant Changes
90
-
91
- This section lists the changes SBM found to be applicable to upgrade the scanned application to Spring Boot 3.0.0.\s
92
-
93
- === Changes to Data Properties
94
- Issue: https://github.com/spring-projects-experimental/spring-boot-migrator/issues/441[#441], Contributors: https://github.com/fabapp2[@fabapp2^, role="ext-link"]
95
-
96
- ==== What Changed
97
- The data prefix has been reserved for Spring Data and any properties under the `data` prefix imply that Spring
98
- Data is required on the classpath.
99
-
100
- ==== Why is the application affected
101
- The scan found properties with `spring.data` prefix but no dependency matching `org.springframework.data:.*`.
102
-
103
- * file://<PATH>/src/main/resources/application.properties[`src/main/resources/application.properties`]
104
- ** `spring.data.foo`
105
- * file://<PATH>/src/main/resources/application-another.properties[`src/main/resources/application-another.properties`]
106
- ** `spring.data.here`
107
-
108
- ==== Remediation
109
- Either add `spring-data` dependency, rename the property or remove it in case it's not required anymore.
110
-
111
-
112
- === Logging Date Format
113
- Issue: https://github.com/spring-projects-experimental/spring-boot-migrator/issues/489[#489], Contributors: https://github.com/fabapp2[@fabapp2^, role="ext-link"]
114
-
115
- ==== What Changed
116
- The default format for the date and time component of log messages for Logback and Log4j2 has changed to\s
117
- align with the ISO-8601 standard. The new default format `yyyy-MM-dd’T’HH:mm:ss.SSSXXX` uses a `T` to\s
118
- separate the date and time instead of a space character and adds the timezone offset to the end.\s
119
- The `LOG_DATEFORMAT_PATTERN` environment variable or `logging.pattern.dateformat` property can be used to\s
120
- restore the previous default value of `yyyy-MM-dd HH:mm:ss.SSS`.
121
-
122
- ==== Why is the application affected
123
- The scan found no property `logging.pattern.dateformat`.
124
-
125
- ==== Remediation
126
- Set logging.pattern.dateformat=yyyy-MM-dd HH:mm:ss.SSS to fall back to the previous log format.
127
-
128
-
129
-
130
- We want to say thank you to all Contributors:
131
-
132
- Generated by Spring Boot Migrator (experimental)
133
- """ ;
46
+ String expectedOutput =
47
+ """
48
+ [[index]]
49
+ = Spring Boot 3 Upgrade Report
50
+ Fabian Krüger
51
+ :source-highlighter: highlight.js
52
+ :highlightjs-languages: java
53
+ :linkcss:
54
+ :doctype: book
55
+ :idprefix:
56
+ :idseparator: -
57
+ :toc: left
58
+ :sectnumlevels: 2
59
+ :toclevels: 2
60
+ :tabsize: 4
61
+ :numbered:
62
+ :sectanchors:
63
+ :sectnums:
64
+ :hide-uri-scheme:
65
+ :docinfo: shared,private
66
+ :attribute-missing: warn
67
+ :chomp: default headers packages
68
+ :spring-boot-artifactory-repo: snapshot
69
+ :github-tag: main
70
+ :spring-boot-version: current
71
+
72
+ == Introduction
73
+ [cols="1h,3"]
74
+ |===
75
+ | Scanned dir | `<PATH>`
76
+ | Revision | Scanned project not under Git
77
+ | Coordinate | `com.example:dummy-root:0.1.0-SNAPSHOT`
78
+ | Boot version | `2.7.3`
79
+ | Changes | 2
80
+ |===
81
+
82
+ The application was scanned and matched against the changes listed in the
83
+ https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.5-Release-Notes[Spring Boot 2.5 Release Notes]
84
+ as well as from https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-5.x[Spring Framework 5.x Release Notes].
85
+
86
+ The Relevant Changes section lists all potentially required changes to upgrade the scanned application to Spring Boot 2.5.6.
87
+
88
+ NOTE: JDK 17 is required for Spring Boot 3
89
+
90
+ == Relevant Changes
91
+
92
+ This section lists the changes SBM found to be applicable to upgrade the scanned application to Spring Boot 3.0.0.\s
93
+
94
+ === Changes to Data Properties
95
+ Issue: https://github.com/spring-projects-experimental/spring-boot-migrator/issues/441[#441], Contributors: https://github.com/fabapp2[@fabapp2^, role="ext-link"]
96
+
97
+ ==== What Changed
98
+ The data prefix has been reserved for Spring Data and any properties under the `data` prefix imply that Spring
99
+ Data is required on the classpath.
100
+
101
+ ==== Why is the application affected
102
+ The scan found properties with `spring.data` prefix but no dependency matching `org.springframework.data:.*`.
103
+
104
+ * file://<PATH>/src/main/resources/application.properties[`src/main/resources/application.properties`]
105
+ ** `spring.data.foo`
106
+ * file://<PATH>/src/main/resources/application-another.properties[`src/main/resources/application-another.properties`]
107
+ ** `spring.data.here`
108
+
109
+ ==== Remediation
110
+ Either add `spring-data` dependency, rename the property or remove it in case it's not required anymore.
111
+
112
+
113
+ === Logging Date Format
114
+ Issue: https://github.com/spring-projects-experimental/spring-boot-migrator/issues/489[#489], Contributors: https://github.com/fabapp2[@fabapp2^, role="ext-link"]
115
+
116
+ ==== What Changed
117
+ The default format for the date and time component of log messages for Logback and Log4j2 has changed to\s
118
+ align with the ISO-8601 standard. The new default format `yyyy-MM-dd’T’HH:mm:ss.SSSXXX` uses a `T` to\s
119
+ separate the date and time instead of a space character and adds the timezone offset to the end.\s
120
+ The `LOG_DATEFORMAT_PATTERN` environment variable or `logging.pattern.dateformat` property can be used to\s
121
+ restore the previous default value of `yyyy-MM-dd HH:mm:ss.SSS`.
122
+
123
+ ==== Why is the application affected
124
+ The scan found no property `logging.pattern.dateformat`.
125
+
126
+ ==== Remediation
127
+ Set logging.pattern.dateformat=yyyy-MM-dd HH:mm:ss.SSS to fall back to the previous log format.
128
+
129
+
130
+
131
+ We want to say thank you to all Contributors:
132
+
133
+ Generated by Spring Boot Migrator (experimental)
134
+ """ ;
134
135
SpringBootUpgradeReportTestSupport .generatedReport ()
135
136
.fromProjectContext (context )
136
137
.shouldRenderAs (expectedOutput , Map .of ("PATH" , Path .of ("." ).toAbsolutePath ().resolve (TestProjectContext .getDefaultProjectRoot ()).toString ()));
0 commit comments