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'