Skip to content

Commit

Permalink
Fix sbt module compilation issue when using IntelliJ IDE (zio#2970)
Browse files Browse the repository at this point in the history
Fix compilation issue via IntelliJ IDE
  • Loading branch information
kyri-petrou authored Aug 3, 2024
1 parent 460b150 commit 5aa5d9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down Expand Up @@ -417,3 +418,8 @@ lazy val docs = project
.dependsOn(zioHttpJVM)
.enablePlugins(WebsitePlugin)
.dependsOn(zioHttpTestkit)

Global / excludeLintKeys ++= Set(
sbtZioHttpGrpcTests / autoAPIMappings,
ideSkipProject,
)
3 changes: 3 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 5aa5d9e

Please sign in to comment.