Skip to content

Commit aa100ea

Browse files
committed
Fixed generation of visibilities.json for PublicApiTest
Generate it only from compileKotlin task (and not from tests)
1 parent 53c0028 commit aa100ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build.gradle

+2-3
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,10 @@ configure(subprojects.findAll { !unpublished.contains(it.name) }) {
170170

171171
if (platform == "jvm") {
172172
dokkaJavadoc.dependsOn project(":$coroutines_core").dokka
173-
174-
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
173+
// dump declarations from main JVM module for binary-compatibility-validator
174+
compileKotlin {
175175
kotlinOptions.freeCompilerArgs += ["-Xdump-declarations-to=${buildDir}/visibilities.json"]
176176
}
177-
178177
}
179178
}
180179

0 commit comments

Comments
 (0)