ServiceOptions.googleCloudProjectId() first checks to see if CLOUDSDK_CONFIG has been set, and uses that in place of ~/.config/gcloud if it has. However DefaultCredentialsProvider.getWellKnownCredentialsFile() does not, instead only looking in the default directory.
ServiceOptions.googleCloudProjectId()first checks to see ifCLOUDSDK_CONFIGhas been set, and uses that in place of~/.config/gcloudif it has. HoweverDefaultCredentialsProvider.getWellKnownCredentialsFile()does not, instead only looking in the default directory.