grv87 / gradle-prerequisites-plugin

Provides prerequisites lifecycle to Gradle
Apache License 2.0
0 stars 0 forks source link

Separation of Gradle prerequisites to dependencies and build tools is wrong #8

Open grv87 opened 5 years ago

grv87 commented 5 years ago

They should be separated differently.

Suppose that compile depends on A. Then testRuntime depends on A too. Suppose that it also depends on B.

Current behavior:

  1. updateBuildTools updates A and B for testRuntime but does not touch A for compile.
  2. updateDependencies updates A for compile but not for testRuntime.

Correct behavior:

  1. updateBuildTools updates B for testRuntime but does not touch A for both compile and testRuntime.
  2. updateDependencies updates A for both compile and testRuntime.

See: