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,opcalled once per build at execution time. - Called during configuration (e.g. for repository credentials) → Gradle fingerprints
the value and stores it in the cache;
opis called on every build for fingerprint validation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceParameters passed toOpReadValueSourcefor resolving a single 1Password secret. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.provider.ValueSource
getParameters
-
Constructor Details
-
OpReadValueSource
public OpReadValueSource()
-
-
Method Details
-
obtain
- Specified by:
obtainin interfaceorg.gradle.api.provider.ValueSource<String,OpReadValueSource.Parameters>
-