Skip to content

Commit

Permalink
feat(cyclonedx): Change the default schema version to 1.6
Browse files Browse the repository at this point in the history
Increase the default schema version from 1.5 to 1.6 which is currently
the latest version [1]. For the release notes see [2].

[1]: https://cyclonedx.org/about/history/
[2]: https://cyclonedx.org/news/cyclonedx-v1.6-released/

Signed-off-by: Martin Nonnenmacher <[email protected]>
  • Loading branch information
mnonnenmacher committed Dec 17, 2024
1 parent e7f4ada commit 69a15f4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"bomFormat": "CycloneDX",
"specVersion": "1.5",
"specVersion": "1.6",
"serialNumber": "urn:uuid:12345678-1234-1234-1234-123456789012",
"version": 1,
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"bomFormat": "CycloneDX",
"specVersion": "1.5",
"specVersion": "1.6",
"serialNumber": "urn:uuid:12345678-1234-1234-1234-123456789012",
"version": 1,
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"bomFormat": "CycloneDX",
"specVersion": "1.5",
"specVersion": "1.6",
"serialNumber": "urn:uuid:12345678-1234-1234-1234-123456789012",
"version": 1,
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<bom serialNumber="urn:uuid:12345678-1234-1234-1234-123456789012" version="1" xmlns="http://cyclonedx.org/schema/bom/1.5">
<bom serialNumber="urn:uuid:12345678-1234-1234-1234-123456789012" version="1" xmlns="http://cyclonedx.org/schema/bom/1.6">
<metadata>
<timestamp>1970-01-01T00:00:00Z</timestamp>
<tools>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ import org.ossreviewtoolkit.utils.common.alsoIfNull
import org.ossreviewtoolkit.utils.ort.Environment
import org.ossreviewtoolkit.utils.ort.ORT_FULL_NAME

internal const val DEFAULT_SCHEMA_VERSION_NAME = "1.5" // Version.VERSION_15.versionString
internal const val DEFAULT_SCHEMA_VERSION_NAME = "1.6" // Version.VERSION_16.versionString
internal val DEFAULT_SCHEMA_VERSION = Version.entries.single { it.versionString == DEFAULT_SCHEMA_VERSION_NAME }

data class CycloneDxReporterConfig(
/**
* The CycloneDX schema version to use. Defaults to "1.5".
* The CycloneDX schema version to use. Defaults to "1.6".
*/
@OrtPluginOption(
defaultValue = DEFAULT_SCHEMA_VERSION_NAME,
Expand Down

0 comments on commit 69a15f4

Please sign in to comment.