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