Difference between compile and runtime configurations in Gradle

后端 未结 1 1171
滥情空心
滥情空心 2020-12-12 20:20

My question is a little bit common, but it is linked with Gradle too.

Why we need compile and runtime configuration?

When I compile somethin

相关标签:
1条回答
  • 2020-12-12 20:25

    In the most common case, the artifacts needed at compile time are a subset of those needed at runtime. For example, let's say that a program called app uses library foo, and library foo internally uses library bar. Then only foo is needed to compile app, but both foo and bar are needed to run it. This is why by default, everything that you put on Gradle's compile configuration is also visible on its runtime configuration, but the opposite isn't true.

    0 讨论(0)
提交回复
热议问题