CycloneDX / CycloneDX/cyclonedx-core-java

Cross-build: make line endings configurable?

Open
#902 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
120
Forks
90
Avg merge
12h 43m
Merged PRs (30d)
18

Description

I'm using the maven plugin on Windows and Linux.
I am creating a sbom.json, which gets added into JAR.
Unfortunately, the created json/jar does not have the same checksum (but the same contents)

Problem seems to the the [BomJsonGenerator](https://github.com/CycloneDX/cyclonedx-core-java/blob/master/src/main/java/org/cyclonedx/generators/json/BomJsonGenerator.java#L87), which creates a `DefaultPrettyPrinter` with system line feeds.
(maybe similar for XML - haven't checked/used)

Any plans to make this configurable?
So that subsequently we can configure that on plugin level?

(As workaround i have a shady ant task running right after, fixing that)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.