Skip to content

Commit

Permalink
Add missing 'shadow' jar.
Browse files Browse the repository at this point in the history
  • Loading branch information
TreyE committed Nov 8, 2024
1 parent 4721f8f commit 963a546
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.ideacrew</groupId>
<artifactId>keycloak-release-sbom</artifactId>
<packaging>jar</packaging>
<version>0.1.0</version>
<version>0.2.0</version>
<name>keycloak-release-sbom</name>
<description>Provides an SBOM for a released version of Keycloak.</description>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@
public class Sbom {

private final ComponentDefinition componentDefinition;
private final MavenJarVersion parentJar;

public Sbom(final ComponentDefinition d) {
componentDefinition = d;
parentJar = new MavenJarVersion(
"org.keycloak",
"keycloak-parent",
d.version
);
}

public void writeSbomFor(final List<JarMappingOutcome> jmol, PrintStream o) throws IOException {
Expand All @@ -43,6 +49,12 @@ public void writeSbomFor(final List<JarMappingOutcome> jmol, PrintStream o) thro
components.put(createComponentObject(mjv, bomRef));
}
}
String pBomRef = getBomRef(parentJar);
if (!brs.contains(pBomRef)) {
brs.add(pBomRef);
bomRefList.put(pBomRef);
components.put(createComponentObject(parentJar, pBomRef));
}
}
}
JSONObject mainDep = new JSONObject();
Expand Down

0 comments on commit 963a546

Please sign in to comment.