Skip to content

Commit

Permalink
Merge pull request #322 from CycloneDX/1.5_support
Browse files Browse the repository at this point in the history
1.5 support
  • Loading branch information
stevespringett authored Sep 6, 2023
2 parents f35e970 + 87b2af3 commit 5629a91
Show file tree
Hide file tree
Showing 291 changed files with 29,338 additions and 2,864 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-core-java</artifactId>
<packaging>jar</packaging>
<version>7.3.3-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>

<name>CycloneDX Core (Java)</name>
<description>The CycloneDX core module provides a model representation of the BOM along with utilities to assist in creating, parsing, and validating BOMs.</description>
Expand Down
10 changes: 8 additions & 2 deletions src/main/java/org/cyclonedx/BomGeneratorFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
import org.cyclonedx.generators.json.BomJsonGenerator12;
import org.cyclonedx.generators.json.BomJsonGenerator13;
import org.cyclonedx.generators.json.BomJsonGenerator14;
import org.cyclonedx.generators.json.BomJsonGenerator15;
import org.cyclonedx.generators.xml.BomXmlGenerator;
import org.cyclonedx.generators.xml.BomXmlGenerator10;
import org.cyclonedx.generators.xml.BomXmlGenerator11;
import org.cyclonedx.generators.xml.BomXmlGenerator12;
import org.cyclonedx.generators.xml.BomXmlGenerator13;
import org.cyclonedx.generators.xml.BomXmlGenerator14;
import org.cyclonedx.generators.xml.BomXmlGenerator15;
import org.cyclonedx.model.Bom;
import org.cyclonedx.generators.json.BomJsonGenerator;

Expand All @@ -50,8 +52,10 @@ public static BomXmlGenerator createXml(CycloneDxSchema.Version version, Bom bom
return new BomXmlGenerator12(bom);
case VERSION_13:
return new BomXmlGenerator13(bom);
default:
case VERSION_14:
return new BomXmlGenerator14(bom);
default:
return new BomXmlGenerator15(bom);
}
}

Expand All @@ -61,8 +65,10 @@ public static BomJsonGenerator createJson(final CycloneDxSchema.Version version,
return new BomJsonGenerator12(bom);
case VERSION_13:
return new BomJsonGenerator13(bom);
default:
case VERSION_14:
return new BomJsonGenerator14(bom);
default:
return new BomJsonGenerator15(bom);
}
}
}
Loading

0 comments on commit 5629a91

Please sign in to comment.