get Credentials
Retrieves the credentials of the specified type for the repository.
Return
An instance of the requested credentials type.
Parameters
T
The type of credentials to retrieve, which must be a subclass of Credentials.
credentials Type
The class of the credentials type to retrieve.
Throws
Gradle Exception
If the credentials are missing or if they cannot be cast to the specified type.