diff --git a/.gitignore b/.gitignore index 0221d0efc1..5e9a3e3957 100644 --- a/.gitignore +++ b/.gitignore @@ -27,7 +27,6 @@ out/ # Automatically Generated ################################################################################ package/windows/MapTool.iss -src/main/resources/sentry.properties # IDEs diff --git a/build.gradle b/build.gradle index adc027944f..53427ed2ef 100644 --- a/build.gradle +++ b/build.gradle @@ -514,18 +514,18 @@ dependencies { implementation 'com.github.RPTools:advanced-dice-roller:1.0.3' } - -task configSentryRelease(type: Copy) { - from("build-resources/sentry.properties.template") - into("src/main/resources/") - rename("sentry.properties.template", "sentry.properties") - def tokens = [ - AppVersion : "${tagVersion}", - Environment: "${environment}", - SentryDSN : "${sentryDSN}" - ] - expand(tokens) - inputs.properties(tokens) +processResources { + with copySpec { + from("build-resources/sentry.properties.template") + rename("sentry.properties.template", "sentry.properties") + def tokens = [ + AppVersion : "${tagVersion}", + Environment: "${environment}", + SentryDSN : "${sentryDSN}" + ] + expand(tokens) + inputs.properties(tokens) + } } shadowJar { @@ -598,8 +598,4 @@ test { task createWrapper(type: Wrapper) { gradleVersion = '8.2.1' -} - -// Configure current release tag in Sentry.io properties -processResources.dependsOn configSentryRelease -configSentryRelease.dependsOn 'spotlessCheck' \ No newline at end of file +} \ No newline at end of file