Clone
Jendrik Johannes
committed
on 23 Oct 19
Remove `platform` and `enforcePlatform` dsl from constraint handler
These shortcuts define details of a dependency like attributes,
requeste… Show more
Remove `platform` and `enforcePlatform` dsl from constraint handler

These shortcuts define details of a dependency like attributes,

requested capabilities and 'endorse strict' status. These things

can not be defined on constraints. So these methods only cause

inconsistent behavior.

One can use constraints in combination with platforms like this to

control platform versions:

dependencies {

 api platform("org:platform")

 constraints {

   api "org:platform:1.0"

 }

}

Show less