Commit e53b921
authored
fix: problem with gradle version resolution (#141)
## Description
Refactor how the Gradle dependencies are resolved because as the full
tree is available in both component and stack analysis we can use the
right trees instead of just the api / implementation listings. This
helps resolving the correct versions.
With that it is also possible to include the correct scope (required /
optional) to the sbom
**Related issue (if any):**
- fixes: #138
- fixes: #139
- fixes: #140
Signed-off-by: Chao Wang <chaowan@redhat.com>1 parent 1db5b9b commit e53b921
40 files changed
Lines changed: 12756 additions & 6196 deletions
File tree
- src
- main/java/com/redhat/exhort
- providers
- sbom
- test/resources/tst_manifests
- gradle-groovy
- deps_with_duplicate_different_versions
- deps_with_duplicate_no_version
- deps_with_ignore_full_specification
- deps_with_ignore_named_params
- deps_with_ignore_notations
- deps_with_no_ignore_common_paths
- gradle-kotlin
- deps_with_duplicate_different_versions
- deps_with_duplicate_no_version
- deps_with_ignore_full_specification
- deps_with_ignore_named_params
- deps_with_ignore_notations
- deps_with_no_ignore_common_paths
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| |||
0 commit comments