Skip to content

Commit

Permalink
only add sentry if there is env
Browse files Browse the repository at this point in the history
  • Loading branch information
frnandu committed Dec 11, 2024
1 parent 7e1dd17 commit bf42dba
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,18 @@ sourceSets {
}
}

sentry {
// Generates a JVM (Java, Kotlin, etc.) source bundle and uploads your source code to Sentry.
// This enables source context, allowing you to see your source
// code as part of your stack traces in Sentry.
includeSourceContext = true

org = "getalby"
projectName = "albyhub-vss"
authToken = System.getenv("SENTRY_AUTH_TOKEN")
if(System.getenv("SENTRY_AUTH_TOKEN") != null) {
sentry {
// Generates a JVM (Java, Kotlin, etc.) source bundle and uploads your source code to Sentry.
// This enables source context, allowing you to see your source
// code as part of your stack traces in Sentry.
includeSourceContext = true

org = "getalby"
projectName = "albyhub-vss"
authToken = System.getenv("SENTRY_AUTH_TOKEN")
}
}

group 'org.vss'
version '1.0'

Expand Down

0 comments on commit bf42dba

Please sign in to comment.