From 45069f1f65f445a3627947ff95ab9d99aa09f1eb Mon Sep 17 00:00:00 2001 From: Sean Glover Date: Tue, 7 Jan 2020 13:09:51 -0500 Subject: [PATCH 1/3] Use silencer scalac params in compile scope only --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 7aeefd6080..2d7d828734 100644 --- a/build.sbt +++ b/build.sbt @@ -169,7 +169,7 @@ lazy val googleCloudPubSubGrpc = alpakkaProject( javaAgents += Dependencies.GooglePubSubGrpcAlpnAgent % Test, // for the ExampleApp in the tests connectInput in run := true, - scalacOptions += "-P:silencer:pathFilters=src_managed", + scalacOptions in (Compile, compile) += "-P:silencer:pathFilters=src_managed", crossScalaVersions --= Seq(Dependencies.Scala211) // 2.11 is not supported since Akka gRPC 0.6 ) // #grpc-plugins From 696a67b7dad70f287f3490b34d2793686e260a8b Mon Sep 17 00:00:00 2001 From: Sean Glover Date: Tue, 7 Jan 2020 17:14:36 -0500 Subject: [PATCH 2/3] Use path convention for task scope --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 2d7d828734..4e0cfca510 100644 --- a/build.sbt +++ b/build.sbt @@ -169,7 +169,7 @@ lazy val googleCloudPubSubGrpc = alpakkaProject( javaAgents += Dependencies.GooglePubSubGrpcAlpnAgent % Test, // for the ExampleApp in the tests connectInput in run := true, - scalacOptions in (Compile, compile) += "-P:silencer:pathFilters=src_managed", + Compile / compile / scalacOptions += "-P:silencer:pathFilters=src_managed", crossScalaVersions --= Seq(Dependencies.Scala211) // 2.11 is not supported since Akka gRPC 0.6 ) // #grpc-plugins From 587e81843ab525b15209f2b99102177c74269283 Mon Sep 17 00:00:00 2001 From: Sean Glover Date: Wed, 8 Jan 2020 12:01:11 -0500 Subject: [PATCH 3/3] Do not use silencer params with doc task --- build.sbt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 4e0cfca510..9b440bd2a1 100644 --- a/build.sbt +++ b/build.sbt @@ -169,7 +169,9 @@ lazy val googleCloudPubSubGrpc = alpakkaProject( javaAgents += Dependencies.GooglePubSubGrpcAlpnAgent % Test, // for the ExampleApp in the tests connectInput in run := true, - Compile / compile / scalacOptions += "-P:silencer:pathFilters=src_managed", + scalacOptions += "-P:silencer:pathFilters=src_managed", + // compiler plugin not enabled for doc task. see https://github.com/ghik/silencer/issues/40 + Compile / doc / scalacOptions := scalacOptions.value.filterNot(_.startsWith("-P:silencer")), crossScalaVersions --= Seq(Dependencies.Scala211) // 2.11 is not supported since Akka gRPC 0.6 ) // #grpc-plugins