Class OpReadValueSource

java.lang.Object
io.github.arve0.onepassword.properties.OpReadValueSource
All Implemented Interfaces:
org.gradle.api.provider.ValueSource<String,OpReadValueSource.Parameters>

public abstract class OpReadValueSource extends Object implements org.gradle.api.provider.ValueSource<String,OpReadValueSource.Parameters>
A Gradle ValueSource that resolves a 1Password secret reference at execution time.

By delegating resolution to this ValueSource, the plugin exposes secrets as Provider<String> instead of resolved String values. Gradle then controls whether the secret ends up in the configuration cache based on when the caller calls .get():

  • Called during execution (e.g. in doLast) → secret NOT stored in the cache, op called once per build at execution time.
  • Called during configuration (e.g. for repository credentials) → Gradle fingerprints the value and stores it in the cache; op is called on every build for fingerprint validation.
  • Constructor Details

    • OpReadValueSource

      public OpReadValueSource()
  • Method Details