From fd3315d2c2ce6df6afff0de061a0c0bd39496406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Schalk=20W=2E=20Cronj=C3=A9?= Date: Wed, 18 Dec 2024 18:23:34 +0100 Subject: [PATCH] Indicate the Asciidoctor 4.x tasks are not compatible with CC --- .../editorconfig/AsciidoctorEditorConfigGenerator.groovy | 3 +++ .../asciidoctor/gradle/base/AbstractAsciidoctorBaseTask.groovy | 3 +++ 2 files changed, 6 insertions(+) diff --git a/asciidoctoreditorconfig/src/main/groovy/org/asciidoctor/gradle/editorconfig/AsciidoctorEditorConfigGenerator.groovy b/asciidoctoreditorconfig/src/main/groovy/org/asciidoctor/gradle/editorconfig/AsciidoctorEditorConfigGenerator.groovy index a36f20911..9c755ac39 100644 --- a/asciidoctoreditorconfig/src/main/groovy/org/asciidoctor/gradle/editorconfig/AsciidoctorEditorConfigGenerator.groovy +++ b/asciidoctoreditorconfig/src/main/groovy/org/asciidoctor/gradle/editorconfig/AsciidoctorEditorConfigGenerator.groovy @@ -55,6 +55,9 @@ class AsciidoctorEditorConfigGenerator extends DefaultTask { private Object outputDir AsciidoctorEditorConfigGenerator() { + notCompatibleWithConfigurationCache( + 'Asciidoctor Gradle 4.x is not compatible with CC. Wait for the 5.x release' + ) this.projectOperations = ProjectOperations.find(project) this.outputDir = project.projectDir this.outputFile = project.provider({ diff --git a/base/src/main/groovy/org/asciidoctor/gradle/base/AbstractAsciidoctorBaseTask.groovy b/base/src/main/groovy/org/asciidoctor/gradle/base/AbstractAsciidoctorBaseTask.groovy index 0839d1181..9c23b7136 100644 --- a/base/src/main/groovy/org/asciidoctor/gradle/base/AbstractAsciidoctorBaseTask.groovy +++ b/base/src/main/groovy/org/asciidoctor/gradle/base/AbstractAsciidoctorBaseTask.groovy @@ -665,6 +665,9 @@ abstract class AbstractAsciidoctorBaseTask extends DefaultTask implements Asciid @SuppressWarnings('ThisReferenceEscapesConstructor') protected AbstractAsciidoctorBaseTask() { super() + notCompatibleWithConfigurationCache( + 'Asciidoctor Gradle 4.x is not compatible with CC. Wait for the 5.x release' + ) this.projectOperations = ProjectOperations.find(project) this.intermediateArtifactPattern = project.objects.property(PatternSet) this.srcDir = createDirectoryProperty(project)