Commit a24fd6f
committed
Modernization Phase 3.6: Convert DependencyResolutionVerifier to use findProperty
Replace eager hasProperty/property access with findProperty():
- verifySuccessfulResolution(): Use findProperty() for CONFIGURATIONS_TO_EXCLUDE
- unresolvedDependenciesShouldFailTheBuild(): Use findProperty() for fail flag
Benefits:
- Single API call instead of hasProperty() + property()
- Null-safe by design (returns null vs throwing exception)
- Checks both gradle properties (-P) and project extras (ext)
- Modern Gradle API recommended approach1 parent b1b59df commit a24fd6f
File tree
1 file changed
+8
-4
lines changed- src/main/kotlin/nebula/plugin/dependencyverifier
1 file changed
+8
-4
lines changedLines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
344 | 346 | | |
345 | 347 | | |
346 | 348 | | |
347 | | - | |
348 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
349 | 353 | | |
350 | 354 | | |
351 | 355 | | |
| |||
0 commit comments