We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd35269 commit bdc16acCopy full SHA for bdc16ac
src/main/kotlin/BinaryCompatibilityValidatorPlugin.kt
@@ -73,7 +73,9 @@ private fun Project.configureKotlinCompilation(compilation: KotlinCompilation<Ko
73
val projectName = project.name
74
val apiBuildDir = file(buildDir.resolve(API_DIR))
75
val apiBuild = task<KotlinApiBuildTask>("apiBuild") {
76
- onlyIf { apiCheckEnabled }
+ onlyIf {
77
+ apiCheckEnabled && compilation.allKotlinSourceSets.any { it.kotlin.srcDirs.any { it.exists() } }
78
+ }
79
// 'group' is not specified deliberately so it will be hidden from ./gradlew tasks
80
description =
81
"Builds Kotlin API for 'main' compilations of $projectName. Complementary task and shouldn't be called manually"
0 commit comments