diff --git a/framework-docs/framework-docs.gradle b/framework-docs/framework-docs.gradle index a9cd30f7c7c..0f85f8228d7 100644 --- a/framework-docs/framework-docs.gradle +++ b/framework-docs/framework-docs.gradle @@ -18,10 +18,6 @@ dependencies { implementation("org.assertj:assertj-core") } -checkstyle { - sourceSets = [] -} - jar { enabled = false } @@ -128,6 +124,8 @@ asciidoctor { } } +asciidoctor.mustRunAfter "check" + /** * Generate the Spring Framework Reference documentation from "src/docs/asciidoc" * in "build/docs/ref-docs/pdf". diff --git a/framework-docs/src/main/java/org/springframework/docs/core/aot/hints/testing/SampleReflectionRuntimeHintsTests.java b/framework-docs/src/main/java/org/springframework/docs/core/aot/hints/testing/SampleReflectionRuntimeHintsTests.java index dbbc43863f2..5d666cc9283 100644 --- a/framework-docs/src/main/java/org/springframework/docs/core/aot/hints/testing/SampleReflectionRuntimeHintsTests.java +++ b/framework-docs/src/main/java/org/springframework/docs/core/aot/hints/testing/SampleReflectionRuntimeHintsTests.java @@ -39,9 +39,8 @@ class SampleReflectionRuntimeHintsTests { void shouldRegisterReflectionHints() { RuntimeHints runtimeHints = new RuntimeHints(); // Call a RuntimeHintsRegistrar that contributes hints like: - runtimeHints.reflection().registerType(SpringVersion.class, typeHint -> { - typeHint.withMethod("getVersion", List.of(), ExecutableMode.INVOKE); - }); + runtimeHints.reflection().registerType(SpringVersion.class, typeHint -> + typeHint.withMethod("getVersion", List.of(), ExecutableMode.INVOKE)); // Invoke the relevant piece of code we want to test within a recording lambda RuntimeHintsInvocations invocations = RuntimeHintsRecorder.record(() -> { diff --git a/src/checkstyle/checkstyle-suppressions.xml b/src/checkstyle/checkstyle-suppressions.xml index b8e2a43db49..32019a49455 100644 --- a/src/checkstyle/checkstyle-suppressions.xml +++ b/src/checkstyle/checkstyle-suppressions.xml @@ -12,6 +12,9 @@ + + +