Skip to content

Commit

Permalink
review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidanio committed Sep 23, 2024
1 parent c2cdf52 commit a561204
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import org.apache.tools.ant.filters.ReplaceTokens
import org.jetbrains.changelog.Changelog
import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.intellij.platform.gradle.TestFrameworkType

plugins {
id("java") // Java support
Expand Down Expand Up @@ -99,6 +98,17 @@ detekt {
}

tasks {
processResources {
val tokens = mapOf(
"sentry_dsn" to (System.getenv("SENTRY_DSN") ?: ""),
)

filesMatching("plugin_config.json") {
filteringCharset = "UTF-8"
filter<ReplaceTokens>("tokens" to tokens)
}
}

wrapper {
gradleVersion = providers.gradleProperty("gradleVersion").get()
}
Expand Down

0 comments on commit a561204

Please sign in to comment.