为什么两个概念之间存在差异。是的,他们决定以这种方式写它,但是对于一切都有合理的目的。
在 Gradle documentation中:
runtime
The dependencies required by the production classes at runtime. By default, also includes the compile time dependencies.
.. 包括编译时依赖项。
在Maven中:
runtime
This scope indicates that the dependency is not required for compilation, but is for execution. It is in the runtime and test classpaths, but not the compile classpath
... 但不是编译类路径