From 63770ba5164449575ae6ecd1e7fbe1e2d52b255d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Thu, 9 Jan 2025 11:36:48 +0100 Subject: [PATCH] Remove Java samples from Kotlin samples compilation --- framework-docs/framework-docs.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework-docs/framework-docs.gradle b/framework-docs/framework-docs.gradle index 8c357a3182..956a701f9e 100644 --- a/framework-docs/framework-docs.gradle +++ b/framework-docs/framework-docs.gradle @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask + plugins { id 'kotlin' id 'io.spring.antora.generate-antora-yml' version '0.0.1' @@ -42,10 +44,8 @@ repositories { } // To avoid a redeclaration error with Kotlin compiler -sourceSets { - main { - java.exclude("org/springframework/docs/**/*.java") - } +tasks.named('compileKotlin', KotlinCompilationTask.class) { + javaSources.from = [] } dependencies {