I am hosting the cuba premium jars in a private repository as my production build machine does not connect to internet. I followed the doc at setting private repo but 1 more step I did. I removed following from the build.gradle file so that build machine does not complain missing environment variable.
All was well and good in 6.5.x and 6.6.x platform/studio versions. However after upgrade to 6.7.2, studio keeps adding the same to build gradle upon launch. I revert the file and everything still works fine.
We imply that if a private repo is used all the artifacts will be stored there. And public CUBA repositories will be deleted from the project repositories list.
If you need to use repo.cuba-platform.com you can leave the premium repository in build.gradle. Just erase credentials and Studio will not change the repositories block in that case.