sortArtifacts

Specifies the ordering for resolved artifacts. Options are:

  • DEFAULT : Don't specify the sort order. Gradle will provide artifacts in the default order.
  • CONSUMER_FIRST : Artifacts for a consuming component should appear before artifacts for its dependencies.
  • DEPENDENCY_FIRST : Artifacts for a consuming component should appear after artifacts for its dependencies.
A best attempt will be made to sort artifacts according the supplied SortOrder, but no guarantees will be made in the presence of dependency cycles. NOTE: For a particular Gradle version, artifact ordering will be consistent. Multiple resolves for the same inputs will result in the same outputs in the same order.

Since

3.5