@cyclonedx/cdxgen 8.5.1 → 8.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1236,12 +1236,10 @@ const createJavaBom = async (path, options) => {
1236
1236
  }
1237
1237
  if (gradleFiles && gradleFiles.length && options.installDeps) {
1238
1238
  let gradleCmd = utils.getGradleCommand(path, null);
1239
- if (!allProjects || !allProjects.length) {
1240
- allProjects.push(parentComponent);
1241
- }
1239
+ allProjects.push(parentComponent);
1242
1240
  for (let sp of allProjects) {
1243
1241
  let gradleDepArgs = [
1244
- sp.name === parentComponent.name
1242
+ sp.purl === parentComponent.purl
1245
1243
  ? "dependencies"
1246
1244
  : `:${sp.name}:dependencies`,
1247
1245
  "-q",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyclonedx/cdxgen",
3
- "version": "8.5.1",
3
+ "version": "8.5.2",
4
4
  "description": "Creates CycloneDX Software Bill-of-Materials (SBOM) from source or container image",
5
5
  "homepage": "http://github.com/cyclonedx/cdxgen",
6
6
  "author": "Prabhu Subramanian <prabhu@appthreat.com>",