11import org.jetbrains.changelog.Changelog
22import org.jetbrains.changelog.markdownToHTML
3+ import org.jetbrains.intellij.platform.gradle.TestFrameworkType
34
45fun properties (key : String ) = providers.gradleProperty(key)
56fun environment (key : String ) = providers.environmentVariable(key)
@@ -10,7 +11,6 @@ plugins {
1011 alias(libs.plugins.gradleIntelliJPlugin) // Gradle IntelliJ Plugin
1112 alias(libs.plugins.changelog) // Gradle Changelog Plugin
1213 alias(libs.plugins.kover) // Gradle Kover Plugin
13- alias(libs.plugins.sentry)
1414}
1515
1616group = properties(" pluginGroup" ).get()
@@ -36,7 +36,11 @@ dependencies {
3636 // Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
3737 // Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
3838 bundledPlugin(" com.intellij.java" )
39+
40+ testFramework(TestFrameworkType .Platform )
3941 }
42+
43+ testImplementation(" junit:junit:4.13.2" )
4044}
4145
4246// Set the JVM language level used to build the project. We are using Java 17 for 2022.2+.
@@ -125,28 +129,15 @@ changelog {
125129}
126130
127131// Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration
128- koverReport {
129- defaults {
130- xml {
131- onCheck = true
132+ kover {
133+ // Disable Kover instrumentation for tests to avoid conflicts with IntelliJ Platform test framework
134+ currentProject {
135+ instrumentation {
136+ disabledForTestTasks.add(" test" )
132137 }
133138 }
134139}
135140
136- // Configure Sentry
137- sentry {
138- includeDependenciesReport = false
139-
140- // Generates a JVM (Java, Kotlin, etc.) source bundle and uploads your source code to Sentry.
141- // This enables source context, allowing you to see your source
142- // code as part of your stack traces in Sentry.
143- includeSourceContext = true
144-
145- org = " cycode"
146- projectName = " intellij-platform-plugin"
147- authToken = environment(" SENTRY_AUTH_TOKEN" )
148- }
149-
150141tasks {
151142 wrapper {
152143 gradleVersion = properties(" gradleVersion" ).get()
@@ -180,5 +171,4 @@ val runIdeForUiTests by intellijPlatformTesting.runIde.registering {
180171
181172tasks.named(" publishPlugin" ) {
182173 dependsOn(" patchChangelog" )
183- dependsOn(" sentryUploadSourceBundleJava" )
184174}
0 commit comments