Open vargenau opened 2 days ago
@vargenau - you can use the file extension .jsonld.json
or jsonld
and it will convert it to 3.0. Alternatively, you can add the options for the from and to file types:
java -jar tools-java-2.0.0-Alpha-jar-with-dependencies.jar Convert hello.spdx hello.spdx.json TAG JSONLD
@goneall The Java tools version 2 have the capability to convert from SPDX 2 to SPDX 3. This is documented at: https://spdx.github.io/Spdx-Java-Library/org/spdx/library/conversion/Spdx2to3Converter.html
But I would like to do it in the command line, not in a Java program.
I used to do something like:
convert from SPDX 2 tag:value to SPDX 2 JSON.
I would have expected that
would convert my SPDX 2 tag:value to SPDX 3, but that still converts to SPDX 2 JSON.
Is there a way to convert SPDX 2 to SPDX 3 on the command line?