Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Commit

Permalink
Use @internal
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennestuder committed Jan 12, 2019
1 parent f124e4f commit fd92282
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import nu.studer.java.util.OrderedProperties;
import org.gradle.api.DefaultTask;
import org.gradle.api.internal.tasks.options.Option;
import org.gradle.api.tasks.Internal;
import org.gradle.api.tasks.OutputFile;
import org.gradle.api.tasks.TaskAction;
import org.slf4j.Logger;
Expand Down Expand Up @@ -45,12 +46,12 @@ public void setValue(String value) {
this.value = value;
}

// do not annotate as @Input to avoid the key being stored in the task artifact cache
@Internal("Do not annotate as @Input to avoid the key being stored in the task artifact cache")
public String getCredentialsKey() {
return key != null ? key : getProjectProperty(CredentialsPlugin.CREDENTIALS_KEY_PROPERTY);
}

// do not annotate as @Input to avoid the value being stored in the task artifact cache
@Internal("Do not annotate as @Input to avoid the value being stored in the task artifact cache")
public String getCredentialsValue() {
return value != null ? value : getProjectProperty(CredentialsPlugin.CREDENTIALS_VALUE_PROPERTY);
}
Expand Down

0 comments on commit fd92282

Please sign in to comment.