From 13be3934ece690599e16bcff98e37bee3d593a77 Mon Sep 17 00:00:00 2001 From: Michel Davit Date: Thu, 5 Sep 2024 15:00:51 +0200 Subject: [PATCH] Allow experimental API usage by plugin (#321) --- build.sbt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 2b3e200..da8d681 100644 --- a/build.sbt +++ b/build.sbt @@ -14,6 +14,8 @@ * specific language governing permissions and limitations * under the License. */ +import org.jetbrains.sbtidea.verifier.FailureLevel +import scala.jdk.CollectionConverters._ disablePlugins(TypelevelCiSigningPlugin) @@ -77,11 +79,15 @@ lazy val scioIdeaPlugin: Project = project // https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html#platformVersions xml.sinceBuild = "223" // for 2022.3 }, - // verify against latest IntelliJ IDEA Community pluginVerifierOptions := pluginVerifierOptions.value.copy( + // verify against latest IntelliJ IDEA Community overrideIDEs = Seq( intellijBaseDirectory.value.toString, "[latest-IC]" - ) + ), + // allow experimental API usages + failureLevels = FailureLevel.ALL.asScala + .filter(_ != FailureLevel.EXPERIMENTAL_API_USAGES) + .toSet ) )