ghik / silencer

Scala compiler plugin for warning suppression
Apache License 2.0
255 stars 33 forks source link

Support for projects using gradle scala plugin #6

Closed CalumMcCall closed 6 years ago

CalumMcCall commented 6 years ago

I'm using the Gradle Scala Plugin. What would be the easiest way to using silencer in such a project? I've had a look at the docs for both projects and I don't see an obvious way. Is migrating to SBT the only way?

ghik commented 6 years ago

Hello, I'm on holidays and I can't check how it's done exactly in Gradle Scala plugin but it should be easy - silencer is a Scala compiler plugin so you just need to find out how to configure compiler plugins in Gradle.

Even if Gradle Scala plugin doesn't support compiler plugins natively, adding a compiler plugin should be as easy as adding a command line option to scalac.

So either way, please look for general information on how to configure Scala compiler plugins.

CalumMcCall commented 6 years ago

Thanks for getting back to me so quickly. That's really useful info, I wasn't sure if compiler plugins had to be packaged for a particular build tool -- good to know they aren't. I'll have a look at the docs.