| 
 | 1 | +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001  | 
 | 2 | +From: Nick Larsen < [email protected]>  | 
 | 3 | +Date: Wed, 29 Jan 2025 16:50:30 +0100  | 
 | 4 | +Subject: Add cyclonedx-plugin  | 
 | 5 | + | 
 | 6 | +---  | 
 | 7 | + build.gradle | 42 ++++++++++++++++++++++++++++++++++++++++++  | 
 | 8 | + 1 file changed, 42 insertions(+)  | 
 | 9 | + | 
 | 10 | +diff --git a/build.gradle b/build.gradle  | 
 | 11 | +index 5b064f4203..2d7b442e7b 100644  | 
 | 12 | +--- a/build.gradle  | 
 | 13 | ++++ b/build.gradle  | 
 | 14 | +@@ -51,6 +51,48 @@ plugins {  | 
 | 15 | +   //  We are going to drop JDK8 support. Hence, the spotless is upgrade to newest version and be applied only if the build env is compatible with JDK 11.  | 
 | 16 | +   //  spotless 6.15.0+ has issue in runtime with JDK8 even through we define it with `apply:false`. see https://github.com/diffplug/spotless/issues/2156 for more details  | 
 | 17 | +   id 'com.diffplug.spotless' version "6.14.0" apply false  | 
 | 18 | ++  id 'org.cyclonedx.bom' version '1.10.0'  | 
 | 19 | ++}  | 
 | 20 | ++  | 
 | 21 | ++cyclonedxBom {  | 
 | 22 | ++    // Specified the type of project being built. Defaults to 'library'  | 
 | 23 | ++    projectType = "application"  | 
 | 24 | ++    // Specified the version of the CycloneDX specification to use. Defaults to '1.5'  | 
 | 25 | ++    schemaVersion = "1.5"  | 
 | 26 | ++    // Boms destination directory. Defaults to 'build/reports'  | 
 | 27 | ++    destination = file("build/reports")  | 
 | 28 | ++    // The file name for the generated BOMs (before the file format suffix). Defaults to 'bom'  | 
 | 29 | ++    outputName = "bom"  | 
 | 30 | ++    // The file format generated, can be xml, json or all for generating both. Defaults to 'all'  | 
 | 31 | ++    outputFormat = "json"  | 
 | 32 | ++    includeConfigs = ["runtimeClasspath"]  | 
 | 33 | ++    // Exclude test components. This list needs to be checked and, if it changed, updated for every new Kafka version.  | 
 | 34 | ++    // The list can be obtained by running `gradle projects | grep upgrade-system-tests`  | 
 | 35 | ++    skipProjects = [  | 
 | 36 | ++      'upgrade-system-tests-0100',  | 
 | 37 | ++      'upgrade-system-tests-0101',  | 
 | 38 | ++      'upgrade-system-tests-0102',  | 
 | 39 | ++      'upgrade-system-tests-0110',  | 
 | 40 | ++      'upgrade-system-tests-10',  | 
 | 41 | ++      'upgrade-system-tests-11',  | 
 | 42 | ++      'upgrade-system-tests-20',  | 
 | 43 | ++      'upgrade-system-tests-21',  | 
 | 44 | ++      'upgrade-system-tests-22',  | 
 | 45 | ++      'upgrade-system-tests-23',  | 
 | 46 | ++      'upgrade-system-tests-24',  | 
 | 47 | ++      'upgrade-system-tests-25',  | 
 | 48 | ++      'upgrade-system-tests-26',  | 
 | 49 | ++      'upgrade-system-tests-27',  | 
 | 50 | ++      'upgrade-system-tests-28',  | 
 | 51 | ++      'upgrade-system-tests-30',  | 
 | 52 | ++      'upgrade-system-tests-31',  | 
 | 53 | ++      'upgrade-system-tests-32',  | 
 | 54 | ++      'upgrade-system-tests-33',  | 
 | 55 | ++      'upgrade-system-tests-34',  | 
 | 56 | ++      'upgrade-system-tests-35',  | 
 | 57 | ++      'upgrade-system-tests-36',  | 
 | 58 | ++      'upgrade-system-tests-37'  | 
 | 59 | ++    ]  | 
 | 60 | + }  | 
 | 61 | +   | 
 | 62 | + ext {  | 
 | 63 | + | 
 | 64 | +base-commit: 84caaa6e9da06435411510a81fa321d4f99c351f  | 
 | 65 | +--   | 
 | 66 | +2.40.1  | 
 | 67 | + | 
0 commit comments