Remove `platform` 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" } }