From bc47b5d1abe2146a417405faa4195e4a3b2edb82 Mon Sep 17 00:00:00 2001 From: Tyler Bertrand Date: Tue, 30 Jul 2024 14:51:42 -0500 Subject: [PATCH] Convert safeModeProperty, fatalWarningsProperty, and logLevelProperty to providers --- .../gradle/jvm/AbstractAsciidoctorTask.groovy | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy b/jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy index f0d415f7..49ff1587 100644 --- a/jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy +++ b/jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy @@ -45,7 +45,6 @@ import org.gradle.api.artifacts.ConfigurationContainer import org.gradle.api.artifacts.Dependency import org.gradle.api.file.FileCollection import org.gradle.api.logging.LogLevel -import org.gradle.api.provider.ListProperty import org.gradle.api.provider.Property import org.gradle.api.provider.Provider import org.gradle.api.tasks.Input @@ -111,10 +110,10 @@ class AbstractAsciidoctorTask extends AbstractJvmModelExecTask> attributesProvider private final Provider> attributeProvidersProvider private final Provider configurationsFileCollectionProvider - private final ListProperty fatalWarningsProperty = project.objects.listProperty(Pattern) + private final Provider> fatalWarningsProvider private final Provider> requiresProvider - private final Property logLevelProperty = project.objects.property(LogLevel) - private final Property safeModeProperty = project.objects.property(SafeMode) + private final Provider logLevelProvider + private final Provider safeModeProvider private final Provider> docExtensionsProvider private final Provider jrubyLessDependenciesProvider = project.provider { @@ -509,13 +508,15 @@ class AbstractAsciidoctorTask extends AbstractJvmModelExecTask