From 5d0e56f1150ac108bc0698e3fec28db0b16b72fc Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 8 Mar 2024 22:52:47 +0530 Subject: [PATCH] fix(build): catch up on `SentryExtension` changes --- .../kotlin/dev/msfjarvis/claw/gradle/SentryPlugin.kt | 12 +++++++++++- sentry.properties | 2 -- 2 files changed, 11 insertions(+), 3 deletions(-) delete mode 100644 sentry.properties diff --git a/build-logic/src/main/kotlin/dev/msfjarvis/claw/gradle/SentryPlugin.kt b/build-logic/src/main/kotlin/dev/msfjarvis/claw/gradle/SentryPlugin.kt index 5602a7d8..8495c366 100644 --- a/build-logic/src/main/kotlin/dev/msfjarvis/claw/gradle/SentryPlugin.kt +++ b/build-logic/src/main/kotlin/dev/msfjarvis/claw/gradle/SentryPlugin.kt @@ -1,5 +1,5 @@ /* - * Copyright © 2023 Harsh Shandilya. + * Copyright © 2023-2024 Harsh Shandilya. * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. @@ -53,6 +53,16 @@ class SentryPlugin : Plugin { sentryVersion.set(libs.versions.sentry.sdk) } includeDependenciesReport.set(true) + includeSourceContext.set(true) + autoUploadSourceContext.set(true) + additionalSourceDirsForSourceContext.set(emptySet()) + debug.set(false) + org.set("claw") + projectName.set("compose-lobsters") + authToken.set(project.providers.environmentVariable("SENTRY_AUTH_TOKEN")) + url.set(null) + telemetry.set(false) + telemetryDsn.set(null) } with(project.dependencies) { addProvider("implementation", platform(libs.sentry.bom)) } } diff --git a/sentry.properties b/sentry.properties deleted file mode 100644 index 8ba54019..00000000 --- a/sentry.properties +++ /dev/null @@ -1,2 +0,0 @@ -defaults.project=compose-lobsters -defaults.org=claw