Using gradle wrapper I am trying to compile source code using two different versions. I am facing a problem when I tried to compile source code with lower version of gradle after upgrading to higher version.
Something like below
Step 1 -> Setup gradle wrapper using 1.12 version
Step 2 -> Compile source code
Step 1-> Upgrade gradle wrapper to next level i.e., 2.0 by updating gradle-wrapper.properties file and wrapper task.
Step 2-> Compile source code
Step 1-> Downgrade gradle wrapper to 1.12 version. No changes were made to gradle-wrapper.properties file.
So I have updated wrapper task to use 1.12 version.
But while compilation I had noticed that gradle wrapper is using the latest entry in gradle-wrapper.properties file i.e., 2.0 instead of 1.12 version specified in wrapper task.
Could someone clarify me whether gradle wrapper works as expected with lowers version after upgrading to higher versions without any changes to gradle-wrapper.properties file?