From 4f2b1857c055d6f0e1d4f03a6c4f831ab1f15ba1 Mon Sep 17 00:00:00 2001 From: Nils Martin Sande Date: Thu, 26 Sep 2024 12:07:32 +0200 Subject: [PATCH] La til cyclonedx plugin i 'bekreftelse-min-side-oppgaver' --- apps/bekreftelse-min-side-oppgaver/build.gradle.kts | 5 +++++ settings.gradle.kts | 1 + 2 files changed, 6 insertions(+) diff --git a/apps/bekreftelse-min-side-oppgaver/build.gradle.kts b/apps/bekreftelse-min-side-oppgaver/build.gradle.kts index 68b57487..d7603e8f 100644 --- a/apps/bekreftelse-min-side-oppgaver/build.gradle.kts +++ b/apps/bekreftelse-min-side-oppgaver/build.gradle.kts @@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") id("com.google.cloud.tools.jib") + id("org.cyclonedx.bom") } val baseImage: String by project @@ -64,3 +65,7 @@ jib { jvmFlags = listOf("-XX:ActiveProcessorCount=4", "-XX:+UseZGC", "-XX:+ZGenerational") } } + +tasks.cyclonedxBom { + setIncludeConfigs(listOf("runtimeClasspath")) +} \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index d16a06fa..77ea4da8 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -4,6 +4,7 @@ plugins { id("com.google.cloud.tools.jib") version "3.4.3" apply false id("org.openapi.generator") version "7.5.0" apply false id("com.github.davidmc24.gradle.plugin.avro") version "1.9.1" apply false + id("org.cyclonedx.bom") version "1.10.0" apply false } rootProject.name = "paw-arbeidssoekerregisteret-monorepo-intern"