From ccd4aebfb87c25c500858281344901f217dbd3d3 Mon Sep 17 00:00:00 2001 From: Tyler Bertrand Date: Thu, 20 Jun 2024 15:48:24 -0500 Subject: [PATCH] Shorten too-long lines --- .../gradle/jvm/AbstractAsciidoctorTask.groovy | 9 +++++---- 1 file changed, 5 insertions(+), 4 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 fc61b613..ef223bb1 100644 --- a/jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy +++ b/jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy @@ -110,7 +110,8 @@ class AbstractAsciidoctorTask extends AbstractJvmModelExecTask optionsProperty = project.objects.mapProperty(String, Object) protected final MapProperty attributesProperty = project.objects.mapProperty(String, Object) - protected final ListProperty attributeProviderProperty = project.objects.listProperty(AsciidoctorAttributeProvider) + protected final ListProperty attributeProviderProperty = project.objects + .listProperty(AsciidoctorAttributeProvider) protected FileCollection configurationsFileCollection protected final ListProperty fatalWarningsProperty = project.objects.listProperty(Pattern) protected final ListProperty requiresProperty = project.objects.listProperty(String) @@ -141,7 +142,7 @@ class AbstractAsciidoctorTask extends AbstractJvmModelExecTask private final Provider>> attributesByLangProvider = project.provider { - def attributesByLang = new HashMap>() + def attributesByLang = [:] languagesAsOptionals.each { lang -> if (lang.isPresent()) { attributesByLang.put(lang.get(), getAsciidoctorJExtension().getAttributesForLang(lang.get())) @@ -401,8 +402,8 @@ class AbstractAsciidoctorTask extends AbstractJvmModelExecTask getReportableConfigurations() { - ([getAsciidoctorJExtension().configuration] + projectOperations.configurations.asConfigurations(asciidocConfigurations)) - .toSet() + ([getAsciidoctorJExtension().configuration] + projectOperations.configurations + .asConfigurations(asciidocConfigurations)).toSet() } /**