Skip to content

Commit 63770ba

Browse files
committed
Remove Java samples from Kotlin samples compilation
1 parent f55c234 commit 63770ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

framework-docs/framework-docs.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
2+
13
plugins {
24
id 'kotlin'
35
id 'io.spring.antora.generate-antora-yml' version '0.0.1'
@@ -42,10 +44,8 @@ repositories {
4244
}
4345

4446
// To avoid a redeclaration error with Kotlin compiler
45-
sourceSets {
46-
main {
47-
java.exclude("org/springframework/docs/**/*.java")
48-
}
47+
tasks.named('compileKotlin', KotlinCompilationTask.class) {
48+
javaSources.from = []
4949
}
5050

5151
dependencies {

0 commit comments

Comments
 (0)