CycloneDX / CycloneDX/cyclonedx-core-java
Cross-build: make line endings configurable?
- Lenguaje dominante
- Java
- Estrellas
- 120
- Forks
- 90
- Merge medio
- 12 h 43 min
- PR fusionados (30 d)
- 18
Descripción
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)
Guía de contribución
Línea de trabajo
Comience en src/main/java/org/cyclonedx/generators/json/BomJsonGenerator.java alrededor de la línea 87, donde DefaultPrettyPrinter utiliza saltos de línea del sistema. Rastree cómo configura el Maven plugin el generador JSON y compruebe si el generador XML tiene el mismo comportamiento. Se considera terminado cuando se proporcione una opción configurable de salto de línea que produzca sumas de comprobación JSON o JAR coherentes en Windows y Linux.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- build-system
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 55/100