Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include cycloneDx for creation of an SBOM #136

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'org.cyclonedx.bom' version '1.8.2'
}

config {
info {
description = 'RIOT'
Expand All @@ -41,7 +45,7 @@ config {
implementation {
enabled = true
}

people {
person {
id = 'jruaux'
Expand All @@ -56,7 +60,7 @@ config {
enabled = false
}
}

licensing {
enabled = false
licenses {
Expand Down Expand Up @@ -91,7 +95,7 @@ allprojects {

subprojects { subproj ->
if (!subproj.name.contains('guide')) {

config {
info {
description = project.project_description
Expand Down Expand Up @@ -124,7 +128,7 @@ subprojects { subproj ->
configurations {
all*.exclude module: 'spring-boot-starter-logging'
}

bootJar {
enabled = false
}
Expand All @@ -150,4 +154,9 @@ subprojects { p ->

boolean hasTestsAt(File testDir) {
testDir.exists() && testDir.listFiles()?.size()
}
}

cyclonedxBom {
skipProjects = ["guide"]
includeConfigs = ["runtimeClasspath", "productionRuntimeClasspath"]
}