diff --git a/README.md b/README.md index c858c202..d80594d0 100644 --- a/README.md +++ b/README.md @@ -220,8 +220,8 @@ play { } ``` -> Note: Currently [Service Account impersonation](https://cloud.google.com/docs/authentication/use-service-account-impersonation) -is only supported when using [Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc) +> Note: Currently, [Service Account impersonation](https://cloud.google.com/docs/authentication/use-service-account-impersonation) +is only supported when using [Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc). ## Task organization diff --git a/play/plugin/src/main/kotlin/com/github/triplet/gradle/play/PlayPublisherExtension.kt b/play/plugin/src/main/kotlin/com/github/triplet/gradle/play/PlayPublisherExtension.kt index 09c9da14..26bb398f 100644 --- a/play/plugin/src/main/kotlin/com/github/triplet/gradle/play/PlayPublisherExtension.kt +++ b/play/plugin/src/main/kotlin/com/github/triplet/gradle/play/PlayPublisherExtension.kt @@ -50,7 +50,7 @@ abstract class PlayPublisherExtension @Inject constructor( abstract val useApplicationDefaultCredentials: Property /** - * Specify the Service Account to impersonate + * Specify the Service Account to impersonate. */ @get:Optional @get:Input diff --git a/play/plugin/src/main/kotlin/com/github/triplet/gradle/play/tasks/internal/PlayApiService.kt b/play/plugin/src/main/kotlin/com/github/triplet/gradle/play/tasks/internal/PlayApiService.kt index 2450ab0f..c50fac3c 100644 --- a/play/plugin/src/main/kotlin/com/github/triplet/gradle/play/tasks/internal/PlayApiService.kt +++ b/play/plugin/src/main/kotlin/com/github/triplet/gradle/play/tasks/internal/PlayApiService.kt @@ -46,7 +46,7 @@ internal abstract class PlayApiService @Inject constructor( } if (useAppDefaultCreds) { - PlayPublisher(parameters.appId.get(), parameters.impersonateServiceAccount.getOrNull()) + PlayPublisher(parameters.appId.get(), parameters.impersonateServiceAccount.orNull) } else { credentialStream().use { PlayPublisher(it, parameters.appId.get())