From 5f999cc32297df312df46e986815a52898879ba4 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Wed, 28 Jun 2023 05:23:23 -0400 Subject: [PATCH] fix: remove transient modifier see https://github.com/dependency-check/dependency-check-gradle/issues/339\#issuecomment-1609649834 --- .../owasp/dependencycheck/gradle/tasks/AbstractAnalyze.groovy | 2 +- .../owasp/dependencycheck/gradle/tasks/ConfiguredTask.groovy | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/groovy/org/owasp/dependencycheck/gradle/tasks/AbstractAnalyze.groovy b/src/main/groovy/org/owasp/dependencycheck/gradle/tasks/AbstractAnalyze.groovy index 1d8c65e..4acff98 100644 --- a/src/main/groovy/org/owasp/dependencycheck/gradle/tasks/AbstractAnalyze.groovy +++ b/src/main/groovy/org/owasp/dependencycheck/gradle/tasks/AbstractAnalyze.groovy @@ -60,7 +60,7 @@ import static org.owasp.dependencycheck.utils.Checksum.* abstract class AbstractAnalyze extends ConfiguredTask { @Internal - transient String currentProjectName = project.getName() + String currentProjectName = project.getName() @Internal Attribute artifactType = Attribute.of('artifactType', String) // @Internal diff --git a/src/main/groovy/org/owasp/dependencycheck/gradle/tasks/ConfiguredTask.groovy b/src/main/groovy/org/owasp/dependencycheck/gradle/tasks/ConfiguredTask.groovy index fc2a262..ea3ca6d 100644 --- a/src/main/groovy/org/owasp/dependencycheck/gradle/tasks/ConfiguredTask.groovy +++ b/src/main/groovy/org/owasp/dependencycheck/gradle/tasks/ConfiguredTask.groovy @@ -37,9 +37,9 @@ import static org.owasp.dependencycheck.utils.Settings.KEYS.* abstract class ConfiguredTask extends DefaultTask { @Internal - transient DependencyCheckExtension config = (DependencyCheckExtension) project.getExtensions().findByName('dependencyCheck') + DependencyCheckExtension config = (DependencyCheckExtension) project.getExtensions().findByName('dependencyCheck') @Internal - transient Settings settings + Settings settings @Internal String PROPERTIES_FILE = 'task.properties'