From f17b46ef32e3e821aaad046702ff2282c45675b7 Mon Sep 17 00:00:00 2001 From: Kyri Petrou Date: Wed, 17 Jul 2024 07:55:37 +0300 Subject: [PATCH] Fix compilation issue via IntelliJ IDE --- build.sbt | 6 ++++++ project/plugins.sbt | 3 +++ 2 files changed, 9 insertions(+) diff --git a/build.sbt b/build.sbt index bd5bda7e16..956cf2106a 100644 --- a/build.sbt +++ b/build.sbt @@ -350,6 +350,7 @@ lazy val sbtZioHttpGrpcTests = (project in file("sbt-zio-http-grpc-tests")) .settings(publishSetting(false)) .settings( Test / skip := (CrossVersion.partialVersion(scalaVersion.value) != Some((2, 12))), + ideSkipProject := (CrossVersion.partialVersion(scalaVersion.value) != Some((2, 12))), libraryDependencies ++= Seq( `zio-test-sbt`, `zio-test`, @@ -417,3 +418,8 @@ lazy val docs = project .dependsOn(zioHttpJVM) .enablePlugins(WebsitePlugin) .dependsOn(zioHttpTestkit) + +Global / excludeLintKeys ++= Set( + sbtZioHttpGrpcTests / autoAPIMappings, + ideSkipProject, +) diff --git a/project/plugins.sbt b/project/plugins.sbt index 3dfe8c5cd2..0295afcde9 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -14,4 +14,7 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0") addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2") addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.7") addSbtPlugin("com.thesamet" % "sbt-protoc-gen-project" % "0.1.8") + +addSbtPlugin("org.jetbrains.scala" % "sbt-ide-settings" % "1.1.2") + libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.11.15"