1) Javadoc 工件往往需要太多的空间和时间来下载。
例如,scala-library-2.10.2-sources.jar
是 1 Mb,但 scala-library-2.10.2-javadoc.jar
是 34 Mb。
2) Javadoc 基本上根本不需要。由于现代 IDE 可以从源中获取所有信息。
所以我想找到一种方法来更改 sbt 设置以完全禁用第三方库依赖项之间的 javadoc 下载。
最佳答案
https://github.com/mpeltonen/sbt-idea/issues/225#issuecomment-19150022好心回答:
The javadoc is typically much more bulky and less useful than the sources. I have at least turned off downloading javadocs by putting this setting in ~/.sbt/build.sbt:
transitiveClassifiers in Global := Seq(Artifact.SourceClassifier)
另见 What is a classifier in SBT .
请注意
~/.sbt/build.sbt
在 Linux 上对应于 %USERPROFILE%\.sbt\build.sbt
在 Windows 上。
关于scala - 如何使用 sbt 跳过 javadoc 依赖项下载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20313123/