Skip to content

Commit

Permalink
fix: fixes the version number discrepancy between manifest file and h…
Browse files Browse the repository at this point in the history
…tml report

Signed-off-by: Olga Lavtar <olavtar@redhat.com>
  • Loading branch information
olavtar committed Jun 14, 2024
1 parent 711b039 commit a3a265d
Show file tree
Hide file tree
Showing 12 changed files with 2,841 additions and 644 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private Sbom buildSbomFromTextFormat(

for (String line : lines) {
line = line.replaceAll("---", "-").replaceAll(" ", " ");
line = line.replaceAll(":(.*):(.*) -> (.*)$", ":$1:$3");
line = line.replaceAll(":(.*):(.*) -> (.*)$", ":$1:$2");
line = line.replaceAll("(.*):(.*):(.*)$", "$1:$2:jar:$3");
line = line.replaceAll(" \\(n\\)$", "");
line = line.replaceAll(" \\(\\*\\)", "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ No dependencies

A web-based, searchable dependency report is available by adding the --scan option.

BUILD SUCCESSFUL in 375ms
BUILD SUCCESSFUL in 424ms
1 actionable task: 1 executed
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"specVersion" : "1.4",
"version" : 1,
"metadata" : {
"timestamp" : "2024-05-01T22:57:54Z",
"timestamp" : "2024-06-14T20:49:04Z",
"component" : {
"group" : "org.acme.dbaas",
"name" : "postgresql-orm-quarkus",
Expand All @@ -29,18 +29,31 @@
"purl" : "pkg:maven/log4j/log4j@1.2.17",
"type" : "library",
"bom-ref" : "pkg:maven/log4j/log4j@1.2.17"
},
{
"group" : "log4j",
"name" : "log4j",
"version" : "1.2.14",
"purl" : "pkg:maven/log4j/log4j@1.2.14",
"type" : "library",
"bom-ref" : "pkg:maven/log4j/log4j@1.2.14"
}
],
"dependencies" : [
{
"ref" : "pkg:maven/org.acme.dbaas/postgresql-orm-quarkus@1.0.0-SNAPSHOT",
"dependsOn" : [
"pkg:maven/log4j/log4j@1.2.17"
"pkg:maven/log4j/log4j@1.2.17",
"pkg:maven/log4j/log4j@1.2.14"
]
},
{
"ref" : "pkg:maven/log4j/log4j@1.2.17",
"dependsOn" : [ ]
},
{
"ref" : "pkg:maven/log4j/log4j@1.2.14",
"dependsOn" : [ ]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ No dependencies

compileClasspath - Compile classpath for source set 'main'.
+--- log4j:log4j:1.2.17
\--- log4j:log4j:1.2.14 -> 1.2.17
\--- log4j:log4j -> 1.2.17

compileOnly - Compile-only dependencies for the 'main' feature. (n)
No dependencies
Expand All @@ -20,14 +20,14 @@ No dependencies

implementation - Implementation dependencies for the 'main' feature. (n)
+--- log4j:log4j:1.2.17 (n)
\--- log4j:log4j:1.2.14 (n)
\--- log4j:log4j (n)

mainSourceElements - List of source directories contained in the Main SourceSet. (n)
No dependencies

runtimeClasspath - Runtime classpath of source set 'main'.
+--- log4j:log4j:1.2.17
\--- log4j:log4j:1.2.14 -> 1.2.17
\--- log4j:log4j -> 1.2.17

runtimeElements - Runtime elements for the 'main' feature. (n)
No dependencies
Expand All @@ -40,7 +40,7 @@ No dependencies

testCompileClasspath - Compile classpath for source set 'test'.
+--- log4j:log4j:1.2.17
\--- log4j:log4j:1.2.14 -> 1.2.17
\--- log4j:log4j -> 1.2.17

testCompileOnly - Compile only dependencies for source set 'test'. (n)
No dependencies
Expand All @@ -50,7 +50,7 @@ No dependencies

testRuntimeClasspath - Runtime classpath of source set 'test'.
+--- log4j:log4j:1.2.17
\--- log4j:log4j:1.2.14 -> 1.2.17
\--- log4j:log4j -> 1.2.17

testRuntimeOnly - Runtime only dependencies for source set 'test'. (n)
No dependencies
Expand All @@ -61,5 +61,5 @@ No dependencies

A web-based, searchable dependency report is available by adding the --scan option.

BUILD SUCCESSFUL in 375ms
BUILD SUCCESSFUL in 522ms
1 actionable task: 1 executed
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"specVersion" : "1.4",
"version" : 1,
"metadata" : {
"timestamp" : "2024-05-01T22:57:54Z",
"timestamp" : "2024-06-14T20:48:18Z",
"component" : {
"group" : "org.acme.dbaas",
"name" : "postgresql-orm-quarkus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2586,5 +2586,5 @@ No dependencies

A web-based, searchable dependency report is available by adding the --scan option.

BUILD SUCCESSFUL in 714ms
BUILD SUCCESSFUL in 588ms
1 actionable task: 1 executed
Loading

0 comments on commit a3a265d

Please sign in to comment.