Skip to content

Commit

Permalink
Create SBOM only for agent
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronweissler committed Mar 30, 2022
1 parent 0f8c4de commit bf2a3d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ jobs:
working_directory: ~/inspectit
steps:
- attach_repo
- run: cd repo && ./gradlew assemble bootJarWithFrontend packageDemo cyclonedxBom :inspectit-ocelot-eum-server:bootJar -PbuildVersion=${CIRCLE_TAG}
- run: cd repo && ./gradlew assemble bootJarWithFrontend packageDemo :inspectit-ocelot-core:cyclonedxBom :inspectit-ocelot-eum-server:bootJar -PbuildVersion=${CIRCLE_TAG}
- run: mkdir artifacts
- run: cp ~/inspectit/repo/inspectit-ocelot-agent/build/inspectit-ocelot-agent-${CIRCLE_TAG}.jar ~/inspectit/artifacts
- run: cp ~/inspectit/repo/inspectit-ocelot-demo/build/inspectit-ocelot-demo-${CIRCLE_TAG}.zip ~/inspectit/artifacts
- run: cp ~/inspectit/repo/components/inspectit-ocelot-configurationserver/build/libs/inspectit-ocelot-configurationserver-${CIRCLE_TAG}.jar ~/inspectit/artifacts
- run: cp ~/inspectit/repo/components/inspectit-ocelot-eum-server/build/libs/inspectit-ocelot-eum-server-${CIRCLE_TAG}.jar ~/inspectit/artifacts
- run: cp ~/inspectit/repo/build/reports/bom.json ~/inspectit/artifacts
- run: cp ~/inspectit/repo/build/reports/bom.xml ~/inspectit/artifacts
- run: cp ~/inspectit/repo/inspectit-ocelot-core/build/reports/bom.json ~/inspectit/artifacts/inspectit-ocelot-agent-bom.json
- run: cp ~/inspectit/repo/inspectit-ocelot-core/build/reports/bom.xml ~/inspectit/artifacts/inspectit-ocelot-agent-bom.xml
- run:
name: Calculate checksums of release artifacts
working_directory: ~/inspectit/artifacts
Expand Down
8 changes: 0 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import com.github.jk1.license.render.TextReportRenderer

plugins {
id 'com.github.jk1.dependency-license-report' version '2.0'
id "org.cyclonedx.bom" version "1.5.0"
}

licenseReport {
Expand Down Expand Up @@ -31,13 +30,6 @@ allprojects {
version = "$buildVersion"
}

cyclonedxBom {
// includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration)
// includeConfigs += ["runtimeClasspath"]
// skipConfigs is a list of configuration names to exclude when generating the BOM
// skipConfigs += ["compileClasspath", "testCompileClasspath"]
}

task codeCoverageReport(type: JacocoReport) {
group = 'Verification'
description = 'Generates a combined report from all subprojects'
Expand Down
6 changes: 6 additions & 0 deletions inspectit-ocelot-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "me.champeau.gradle.jmh" version "0.5.3"
id "org.cyclonedx.bom" version "1.5.0"
}

configurations {
Expand Down Expand Up @@ -150,6 +151,11 @@ task generateVersionFile {
}
}

cyclonedxBom {
// includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration)
includeConfigs += ["runtimeClasspath"]
}

jar.dependsOn checkDependencyJavaVersions
jar.dependsOn generateVersionFile

Expand Down

0 comments on commit bf2a3d9

Please sign in to comment.