Setting javac options for SBT dependencies

早过忘川 提交于 2019-12-01 19:52:48

You are correct that the setting only applies to source files in your project. If the project part of the scope isn't specified, which is typical, it defaults to the enclosing project. To have a setting apply to another project, scope it to that project. For example,

javacOptions in riakJavaClient ++= Seq("-encoding", "UTF-8")

You can verify that your options are being used with last. For example,

sbt> last compile

To run commands like the above on a project from git, change to it using project (see help project for details).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!