Skip to content

Commit 960a5a1

Browse files
author
Greg Gibeling
committed
Merge remote-tracking branch 'origin/master' into Roche-CSI-main
# Conflicts: # .github/workflows/maven.yml # pom.xml
2 parents 30b9f0d + 527c9d0 commit 960a5a1

File tree

542 files changed

+49888
-4724
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

542 files changed

+49888
-4724
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
* text=auto
2+
3+
# This file is used for computing hashes which must not differ by platform
4+
src/test/resources/hashtest.txt text eol=lf
5+
6+
# Shell scripts must always use LF even on Windows
7+
*.sh text eol=lf
8+
9+
# These are explicitly Windows files and should use crlf
10+
*.bat text eol=crlf

.github/release-drafter.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter
2+
name-template: $NEXT_PATCH_VERSION
3+
tag-template: cyclonedx-core-java-$NEXT_MINOR_VERSION
4+
version-template: $MAJOR.$MINOR.$PATCH
5+
6+
# Emoji reference: https://gitmoji.carloscuesta.me/
7+
categories:
8+
- title: ":boom: Breaking changes"
9+
labels:
10+
- breaking
11+
- title: 🚨 Removed
12+
label: removed
13+
- title: ":tada: Major features and improvements"
14+
labels:
15+
- major-enhancement
16+
- major-rfe
17+
- title: 🐛 Major bug fixes
18+
labels:
19+
- major-bug
20+
- title: ⚠️ Deprecated
21+
label: deprecated
22+
- title: 🚀 New features and improvements
23+
labels:
24+
- enhancement
25+
- feature
26+
- rfe
27+
- title: 🐛 Bug Fixes
28+
labels:
29+
- bug
30+
- fix
31+
- bugfix
32+
- regression
33+
- title: ":construction_worker: Changes for plugin developers"
34+
labels:
35+
- developer
36+
# Default label used by Dependabot
37+
- title: 📦 Dependency updates
38+
label:
39+
- dependencies
40+
- dependency
41+
- dependency-upgrade
42+
- title: 📝 Documentation updates
43+
label: documentation
44+
- title: 👻 Maintenance
45+
labels:
46+
- chore
47+
- internal
48+
- maintenance
49+
- title: 🔧 Build
50+
label: build
51+
- title: 🚦 Tests
52+
labels:
53+
- test
54+
- tests
55+
exclude-labels:
56+
- reverted
57+
- no-changelog
58+
- skip-changelog
59+
- invalid
60+
61+
change-template: '- $TITLE ([#$NUMBER]($URL)) @$AUTHOR'
62+
63+
template: |
64+
<!-- Optional: add a release summary here -->
65+
$CHANGES

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v2.3.4
28+
uses: actions/checkout@v4.1.1
2929
with:
3030
# We must fetch at least the immediate parents so that if this is
3131
# a pull request then we can checkout the head.
@@ -38,7 +38,7 @@ jobs:
3838

3939
# Initializes the CodeQL tools for scanning.
4040
- name: Initialize CodeQL
41-
uses: github/codeql-action/init@v1
41+
uses: github/codeql-action/init@v2
4242
with:
4343
languages: ${{ matrix.language }}
4444
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -49,7 +49,7 @@ jobs:
4949
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5050
# If this step fails, then you should remove it and run the build manually (see below)
5151
- name: Autobuild
52-
uses: github/codeql-action/autobuild@v1
52+
uses: github/codeql-action/autobuild@v2
5353

5454
# ℹ️ Command-line programs to run using the OS shell.
5555
# 📚 https://git.io/JvXDl
@@ -63,4 +63,4 @@ jobs:
6363
# make release
6464

6565
- name: Perform CodeQL Analysis
66-
uses: github/codeql-action/analyze@v1
66+
uses: github/codeql-action/analyze@v2

.github/workflows/docs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-documentation:
11+
name: "Build documentation"
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
steps:
15+
- uses: actions/[email protected]
16+
- name: Set up JDK 8
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: temurin
20+
java-version: 8
21+
- name: Build with Maven
22+
run: mvn package --file pom.xml
23+
24+
- name: Deploy documentation
25+
uses: JamesIves/github-pages-deploy-action@releases/v3
26+
with:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
BRANCH: gh-pages
29+
FOLDER: target/apidocs

.github/workflows/maven.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Maven CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
matrix:
9+
os: [ ubuntu-latest ]
10+
java-version: [ 8 ]
11+
distro: [ 'zulu', 'temurin' ]
12+
runs-on: ${{ matrix.os }}
13+
14+
steps:
15+
- uses: actions/[email protected]
16+
- name: Set up JDK ${{ matrix.java-version }}
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: ${{ matrix.distro }}
20+
java-version: ${{ matrix.java-version }}
21+
- name: Build with Maven
22+
run: mvn package --file pom.xml
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release Drafter
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
update_release_draft:
12+
permissions:
13+
# write permission is required to create a github release
14+
contents: write
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: release-drafter/release-drafter@v5
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [7.1.0] - 2022-02-24
8+
### Added
9+
- `CHANGELOG.md`, due to increasing major releases, a change log has been added to help further elaborate
10+
on why a release occurred, when, and major points related to it.
11+
12+
### Removed
13+
- `PropertiesDeserializer.java` and the associated test contributed from Lockheed Martin.
14+
The changed was predicated by a license header that is incompatible with the Apache 2.0 License, and
15+
causing some consumers grief. More at [the issue where this was reported](https://github.com/CycloneDX/cyclonedx-core-java/issues/178).
16+
Of note, a major release was skipped as this functionality was controlled by a property, and had to be opted in to.
17+
18+
## [7.0.0] - 2022-02-22
19+
### Changed
20+
- `toJsonObject` was changed to `toJsonNode`, removing a dependency on org.glassfish json-api, as well as javax json-api.
21+
This was done because those dependencies are GPLv2 with Classpath Exception, and while they can be likely used with
22+
minimal grief, they still raise eyebrows due to the license being associated with GPLv2. This method was modified to
23+
return the Jackson equivalent of `JsonObject`.
24+
25+
## [6.0.0] - 2022-02-16
26+
### Added
27+
- Support for CycloneDX 1.4 Schema in XML, JSON and protobuf (schema only for protobuf).
28+
- Notable support of `vulnerabilities` object, previously an extension. Limited support for the extension left in place.

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ CycloneDX Core (Java)
1111
=========
1212

1313
The CycloneDX core module provides a model representation of the SBOM along with utilities to assist in creating,
14-
validating, and parsing SBOMs. CycloneDX is a lightweight software bill of materials (SBOM) specification designed for
15-
use in application security contexts and supply chain component analysis.
14+
validating, and parsing SBOMs. OWASP CycloneDX is a full-stack Bill of Materials (BOM) standard that provides advanced
15+
supply chain capabilities for cyber risk reduction
1616

1717
Maven Usage
1818
-------------------
@@ -21,7 +21,7 @@ Maven Usage
2121
<dependency>
2222
<groupId>org.cyclonedx</groupId>
2323
<artifactId>cyclonedx-core-java</artifactId>
24-
<version>5.0.5</version>
24+
<version>8.0.3</version>
2525
</dependency>
2626
```
2727

@@ -32,12 +32,19 @@ as well as the output format options. Use the latest possible version of this li
3232
the CycloneDX version supported by the target system.
3333

3434
| Version | Schema Version | Format(s) |
35-
| ------- | ----------------- | --------- |
36-
| 5.x | CycloneDX v1.3 | XML/JSON |
37-
| 4.x | CycloneDX v1.2 | XML/JSON |
38-
| 3.x | CycloneDX v1.2 | XML/JSON |
39-
| 2.x | CycloneDX v1.1 | XML |
40-
| 1.x | CycloneDX v1.0 | XML |
35+
|---------|----------------|-----------|
36+
| 8.x | CycloneDX v1.5 | XML/JSON |
37+
| 7.x | CycloneDX v1.4 | XML/JSON |
38+
| 6.x | CycloneDX v1.4 | XML/JSON |
39+
| 5.x | CycloneDX v1.3 | XML/JSON |
40+
| 4.x | CycloneDX v1.2 | XML/JSON |
41+
| 3.x | CycloneDX v1.2 | XML/JSON |
42+
| 2.x | CycloneDX v1.1 | XML |
43+
| 1.x | CycloneDX v1.0 | XML |
44+
45+
## Library API Documentation
46+
47+
The library API documentation can be viewed online at [https://cyclonedx.github.io/cyclonedx-core-java/](https://cyclonedx.github.io/cyclonedx-core-java/).
4148

4249
Copyright & License
4350
-------------------

0 commit comments

Comments
 (0)