Commit 503296a
This PR cherry-picks changes from the original PR #25024 to branch 25.2.
---
#### Original PR description
> The production frontend bundle produced by vaadinBuildFrontend was
written to a task-owned directory (build/vaadin-build-frontend) that is
not on the runtime classpath. It was copied into application archives
with an explicit Jar.from(...), but never exposed on the classpath, so
an application served in place from the source set output - gretty
during a production build, or an IDE/bootRun launch - no longer found
the bundle or the production flow-build-info.json and started in
development mode, failing with "There is no dev-bundle ... found".
>
> Register the bundle directory as an extra output of the main source
set (output.dir(builtBy: vaadinBuildFrontend)), restoring the behavior
that shipped through 25.1.x: the bundle is on the runtime classpath for
in-place runs and is packaged into every application archive through
standard source-set-output handling (WEB-INF/classes for WAR, the
archive root for plain and Spring Boot executable jars). The task-owned
output directory introduced in #25001 is kept, so the build-cache fix
(#24012) is preserved.
>
> Because output.dir makes the `classes` lifecycle task depend on
vaadinBuildFrontend, this task no longer depends on `classes` (which
would form a cycle). Ordering after compilation is established by its
@classpath classesDirs input, and ordering after resource processing by
an explicit dependency on the processResources task.
>
> The per-archive Jar.from(...) copying, the Spring Boot
BOOT-INF/classes special-casing, and the
includeArchiveTasks/excludeArchiveTasks options (all introduced in
25.3.0-alpha4, never in a stable release) are no longer needed and are
removed. The Spring Boot bundle location returns to the archive root,
matching 25.1.x.
>
> Fixes #25021
Co-authored-by: Marco Collovati <marco@vaadin.com>
1 parent 10ad032 commit 503296a
5 files changed
Lines changed: 96 additions & 186 deletions
File tree
- flow-plugins/flow-gradle-plugin/src
- functionalTest/kotlin/com/vaadin/gradle
- main/kotlin/com/vaadin/gradle
Lines changed: 43 additions & 71 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1024 | 1022 | | |
1025 | 1023 | | |
1026 | 1024 | | |
| |||
1058 | 1056 | | |
1059 | 1057 | | |
1060 | 1058 | | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
1064 | 1063 | | |
1065 | 1064 | | |
1066 | 1065 | | |
| |||
1108 | 1107 | | |
1109 | 1108 | | |
1110 | 1109 | | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
1157 | 1122 | | |
1158 | 1123 | | |
1159 | | - | |
| 1124 | + | |
1160 | 1125 | | |
1161 | 1126 | | |
1162 | 1127 | | |
1163 | | - | |
| 1128 | + | |
| 1129 | + | |
1164 | 1130 | | |
1165 | 1131 | | |
1166 | 1132 | | |
1167 | 1133 | | |
1168 | 1134 | | |
1169 | 1135 | | |
1170 | 1136 | | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
1174 | | - | |
1175 | 1137 | | |
1176 | 1138 | | |
| 1139 | + | |
1177 | 1140 | | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | 1141 | | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
1185 | 1156 | | |
1186 | 1157 | | |
1187 | 1158 | | |
1188 | 1159 | | |
1189 | | - | |
| 1160 | + | |
| 1161 | + | |
1190 | 1162 | | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
1194 | 1166 | | |
1195 | 1167 | | |
1196 | 1168 | | |
| |||
Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
159 | 158 | | |
160 | 159 | | |
161 | 160 | | |
| |||
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
194 | 191 | | |
195 | 192 | | |
196 | 193 | | |
| |||
Lines changed: 26 additions & 76 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 33 | | |
41 | 34 | | |
42 | 35 | | |
| |||
86 | 79 | | |
87 | 80 | | |
88 | 81 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
112 | 101 | | |
113 | 102 | | |
114 | 103 | | |
| |||
175 | 164 | | |
176 | 165 | | |
177 | 166 | | |
178 | | - | |
179 | | - | |
180 | 167 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
191 | 175 | | |
192 | 176 | | |
193 | 177 | | |
| |||
205 | 189 | | |
206 | 190 | | |
207 | 191 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | 192 | | |
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
142 | 150 | | |
143 | 151 | | |
144 | 152 | | |
| |||
163 | 171 | | |
164 | 172 | | |
165 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
166 | 183 | | |
167 | 184 | | |
168 | 185 | | |
| |||
0 commit comments