I've changed the code to allow us to set the version number only for the com.google.android.gms:play-services-location library and don't conflict with other plugins that use the same variable name (googlePlayServicesVersion) to set the google play service versions.
The code will still allow you to use googlePlayServicesVersion though.
As can be found here https://developers.google.com/android/guides/releases Since May 2, 2018 Google Play services libraries have independent versions number.
I've changed the code to allow us to set the version number only for the com.google.android.gms:play-services-location library and don't conflict with other plugins that use the same variable name (googlePlayServicesVersion) to set the google play service versions.
The code will still allow you to use googlePlayServicesVersion though.