Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ allprojects {
}

ext {
nexusPlatformApiVersion='5.1.2-01'
nexusPlatformApiVersion='5.2.4-01'
ossIndexClientVersion='1.8.2'
logbackVersion='1.3.14'
commonsIoVersion='2.16.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.Set;
import java.util.UUID;

import org.cyclonedx.CycloneDxSchema;
import org.sonatype.goodies.packageurl.PackageUrl;
import org.sonatype.gradle.plugins.scan.common.PluginVersionUtils;
import org.sonatype.ossindex.service.api.componentreport.ComponentReport;
Expand All @@ -38,8 +39,8 @@
import com.google.common.base.CharMatcher;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.cyclonedx.BomGeneratorFactory;
import org.cyclonedx.CycloneDxSchema;
import org.cyclonedx.generators.BomGeneratorFactory;
import org.cyclonedx.Version;
import org.cyclonedx.generators.json.BomJsonGenerator;
import org.cyclonedx.model.Bom;
import org.cyclonedx.model.Component;
Expand Down Expand Up @@ -234,7 +235,7 @@ private void addAffectedVersionRanges(
}

private void generateFile(Bom bom) {
BomJsonGenerator generator = BomGeneratorFactory.createJson(CycloneDxSchema.Version.VERSION_14, bom);
BomJsonGenerator generator = BomGeneratorFactory.createJson(Version.VERSION_14, bom);

try (BufferedWriter writer = new BufferedWriter(new FileWriter(FILE_NAME_OUTPUT))) {
writer.write(generator.toJsonString());
Expand Down