From 6ef5616e6f4c2be6715f4de89ef22b04b38cf8ff Mon Sep 17 00:00:00 2001 From: Maximilian Kaul Date: Wed, 25 Sep 2024 13:26:22 +0200 Subject: [PATCH] enable uuid for the whole project --- buildSrc/src/main/kotlin/cpg.common-conventions.gradle.kts | 2 +- .../main/kotlin/de/fraunhofer/aisec/cpg/frontends/Handler.kt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/cpg.common-conventions.gradle.kts b/buildSrc/src/main/kotlin/cpg.common-conventions.gradle.kts index 7f6c09c47c..b7e2fad253 100644 --- a/buildSrc/src/main/kotlin/cpg.common-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/cpg.common-conventions.gradle.kts @@ -107,7 +107,7 @@ kotlin { tasks.withType { compilerOptions { - freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn", "-Xcontext-receivers") + freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn", "-opt-in=kotlin.uuid.ExperimentalUuidApi", "-Xcontext-receivers") } } diff --git a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/Handler.kt b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/Handler.kt index 68d0ae5da3..dd5cf76043 100644 --- a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/Handler.kt +++ b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/Handler.kt @@ -168,7 +168,6 @@ abstract class Handler