Why do I have to specify both 'runtime' and 'compile' for the same dependency?

前端 未结 1 2060
甜味超标
甜味超标 2021-02-19 14:52

I am depending on a few artifacts that I need to both compile and run my application.

According to the Gradle docs, the runtime configuration extends the compil

1条回答
  •  长情又很酷
    2021-02-19 15:49

    Almost right. Runtime configuration, indeed, extends compile configuration (docs). It means, that any dependency added to compile configuration is available in runtime configuration (docs).

    compile 'oauth.signpost:signpost-core:1.2.1.2' will be enough to get this artifact in both, runtime and compile.

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