Skip to content

Commit 773af41

Browse files
committed
Make :verifyPlugin less strict to fix build failure
As of IDEA version 251.18673.35 (EAP), the task failed because NixUsageSearcher is using LeafOccurrenceMapper.withPointer, and LeafOccurrenceMapper has been annotated with @OverrideOnly. Since withPointer is a static method, I don't think it was intended that this method is affected. I created IJPL-176605 about the issue. Anyway, since this is not the first time that I run into some issue with the strict custom failure levels, I will just revert the option back to default. Note that non-default failure levels are mostly just warnings, and don't prevent the plugin from working. There is also no way to whitelist individual failures, since ignoredProblemsFile seems to work for compatibility problems only.
1 parent 5a250b3 commit 773af41

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

build.gradle.kts

-9
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import org.jetbrains.changelog.Changelog
22
import org.jetbrains.changelog.markdownToHTML
33
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
44
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
5-
import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask.FailureLevel
65
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
7-
import java.util.EnumSet
86

97
plugins {
108
id("java")
@@ -122,13 +120,6 @@ intellijPlatform {
122120
.orElse(ProductReleasesValueSource())
123121
)
124122
}
125-
failureLevel = EnumSet.complementOf(
126-
EnumSet.of(
127-
FailureLevel.DEPRECATED_API_USAGES,
128-
FailureLevel.SCHEDULED_FOR_REMOVAL_API_USAGES,
129-
FailureLevel.EXPERIMENTAL_API_USAGES,
130-
)
131-
)
132123
}
133124
publishing {
134125
token = providers.environmentVariable("JETBRAINS_TOKEN")

0 commit comments

Comments
 (0)