google / google/secrets-gradle-plugin

Better support Gradle Configuration cache

Open
#89 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.3k
Forks
122
PR merge metrics
No merged PRs in 30d

Description

Currently ([by inspection](https://github.com/google/secrets-gradle-plugin/blob/main/secrets-gradle-plugin/src/main/java/com/google/android/libraries/mapsplatform/secrets_gradle_plugin/SecretsPlugin.kt#L46)) this plugin reads the secrets file during configuration, which will result in a configuration cache miss when the contents of the secrets file changes

Could we use the lazy APIs (e.g. [fileContents](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/ProviderFactory.html#fileContents(org.gradle.api.provider.Provider)) so this file is not read during configuration and therefore doesn't need to be a configuration cache input?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.