java - How to enforce usage of gradlew over gradle? -
if have gradle installed on system , project foo
uses gradle wrapper have found can invoke the build using gradle
command or gradlew
wrapper.
suppose gradle installed on system version 2.2.1 , gradle wrapper setup use gradle version 1.9 happens if invoke system gradle
build run using gradle 2.2.1 or 1.9 specified wrapper? how gradle handle conflicts between version installed on system , 1 specified wrapper? there way build fail if invoked using gradle
rather gradlew
?
there no built-in way enforce gradlew
on gradle
. common solution tell/document should use gradlew
, , nobody should install gradle manually. experience works (why install if don't need to). power users need/want local gradle installation typically figure out if got wrong.
Comments
Post a Comment