This repository has been archived by the owner on Feb 2, 2025. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example of warning: > > Configure project :kotest-assertions-arrow-fx-coroutines > w: A compileOnly dependency is used in targets: Kotlin/JS. > Dependencies: > - io.arrow-kt:arrow-fx-coroutines:2.0.0 (source sets: jsMain) > > Using compileOnly dependencies in these targets is not currently supported, because compileOnly dependencies must be present during the compilation of projects that depend on this project. > > To ensure consistent compilation behaviour, compileOnly dependencies should be exposed as api dependencies. > > Example: > > kotlin { > sourceSets { > nativeMain { > dependencies { > compileOnly("org.example:lib:1.2.3") > // additionally add the compileOnly dependency as an api dependency: > api("org.example:lib:1.2.3") > } > } > } > } > > This warning can be suppressed in gradle.properties: > > kotlin.suppressGradlePluginWarnings=IncorrectCompileOnlyDependencyWarning
- Loading branch information