diff --git a/.github/workflows/publish-release-artifacts.yml b/.github/workflows/publish-release-artifacts.yml index d1dc91a0f3..a708b057fd 100644 --- a/.github/workflows/publish-release-artifacts.yml +++ b/.github/workflows/publish-release-artifacts.yml @@ -48,7 +48,7 @@ jobs: submodules: recursive - uses: gradle/gradle-build-action@v2 with: - arguments: build + arguments: build cyclonedxBom - name: Upload Jar to GitHub release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -58,4 +58,5 @@ jobs: # It may also need to be able to upload more than one file. run: | gh release upload "v$( { setOnlyIf { isReleaseVersion && gradle.taskGraph.hasTask("publish") } } + + cyclonedxBom { + setIncludeConfigs(listOf("runtimeClasspath")) + setSkipConfigs(listOf("compileClasspath", "testCompileClasspath")) + } } publishing {