LuciferYang commented on pull request #30351:
URL: https://github.com/apache/spark/pull/30351#issuecomment-730808428
@HyukjinKwon @srowen @MaxGekk do you know how to add
`-P:silencer:globalFilters=.*deprecated.*` to `scala-maven-plugin` ? There are
still some differences in compilation options between maven and sbt:
**maven**:
```
<args>
<arg>-unchecked</arg>
<arg>-deprecation</arg>
<arg>-feature</arg>
<arg>-explaintypes</arg>
<arg>-Ywarn-unused-import</arg>
<arg>-target:jvm-1.8</arg>
</args>
```
**sbt**:
```
Seq(
"-Xfatal-warnings",
"-deprecation",
"-P:silencer:globalFilters=.*deprecated.*" //regex to catch deprecation
warnings and supress them
)
```
seems need add `-Xfatal-warnings` and
`-P:silencer:globalFilters=.*deprecated.*` to maven too, but will raise compile
error if add `scala-maven-plugin` to `<arg>` directly as follows:
```
[ERROR] [Error] : bad option: -P:silencer:globalFilters=.*deprecated.*
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]