Commit 3d4c6ea
committed
Fix Task.project invocation at execution time deprecations
Fix deprecated Task.project access at execution time (scheduled for removal in Gradle 10)
by capturing project properties at configuration time.
Changes:
- SbomPlugin: Capture projectName, projectPath, and buildDate at configuration time;
refactor pickLicense() to accept these values instead of task reference
- PublishPlugin: Capture PublishingExtension at configuration time before doLast block
- GrailsGradlePlugin: Capture buildDir at configuration time for buildProperties task;
capture antBuilder at configuration time for native2ascii task
- GrailsProfileGradlePlugin: Replace project.sync in doLast with Sync task type
Tested output before/after changes:
- cyclonedxBom: Identical (except expected timestamp/UUID differences)
- savePublishedArtifacts: Identical
- processProfileResources: Identical
- buildProperties: Functionally identical (minor formatting: one less blank line)
- grails-doc docs: Identical (verified Grails BOM.html)1 parent 8a85313 commit 3d4c6ea
File tree
4 files changed
+72
-58
lines changed- build-logic/plugins/src/main/groovy/org/apache/grails/buildsrc
- grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin
- core
- profiles
4 files changed
+72
-58
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | | - | |
| 102 | + | |
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
| |||
Lines changed: 26 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
209 | 214 | | |
210 | 215 | | |
211 | 216 | | |
212 | 217 | | |
213 | 218 | | |
214 | 219 | | |
215 | | - | |
216 | 220 | | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
222 | 226 | | |
223 | | - | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
| |||
253 | 257 | | |
254 | 258 | | |
255 | 259 | | |
256 | | - | |
| 260 | + | |
257 | 261 | | |
258 | 262 | | |
259 | 263 | | |
| |||
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
266 | 280 | | |
267 | | - | |
| 281 | + | |
268 | 282 | | |
269 | | - | |
| 283 | + | |
270 | 284 | | |
271 | 285 | | |
272 | | - | |
| 286 | + | |
273 | 287 | | |
274 | 288 | | |
275 | 289 | | |
276 | 290 | | |
277 | | - | |
| 291 | + | |
278 | 292 | | |
279 | 293 | | |
280 | 294 | | |
281 | | - | |
| 295 | + | |
282 | 296 | | |
283 | 297 | | |
284 | 298 | | |
285 | 299 | | |
286 | 300 | | |
287 | 301 | | |
288 | | - | |
| 302 | + | |
289 | 303 | | |
290 | 304 | | |
291 | 305 | | |
| |||
297 | 311 | | |
298 | 312 | | |
299 | 313 | | |
300 | | - | |
| 314 | + | |
301 | 315 | | |
302 | 316 | | |
303 | | - | |
| 317 | + | |
304 | 318 | | |
305 | 319 | | |
306 | | - | |
| 320 | + | |
307 | 321 | | |
308 | 322 | | |
309 | 323 | | |
| |||
Lines changed: 21 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
383 | 388 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
390 | 397 | | |
391 | 398 | | |
392 | 399 | | |
| |||
813 | 820 | | |
814 | 821 | | |
815 | 822 | | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
816 | 830 | | |
817 | | - | |
| 831 | + | |
818 | 832 | | |
819 | 833 | | |
820 | | - | |
821 | | - | |
822 | 834 | | |
823 | 835 | | |
824 | 836 | | |
| |||
Lines changed: 19 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 96 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
120 | 101 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
124 | 105 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
128 | 109 | | |
129 | | - | |
130 | | - | |
| 110 | + | |
| 111 | + | |
131 | 112 | | |
| 113 | + | |
| 114 | + | |
132 | 115 | | |
133 | 116 | | |
134 | 117 | | |
| |||
0 commit comments