Nikky
04/20/2024, 10:51 PMVampire
04/21/2024, 11:29 AMio.ktor:ktor-client-cio
, which does not have the class. Your library effectively has a provided
dependency on io.ktor:ktor-client-cio-jvm
when used from a non-Gradle consumer even though it does not declare it.Nikky
04/21/2024, 11:40 AMVampire
04/21/2024, 4:17 PM@file:DependsOn("io.ktor:ktor-client-cio-jvm:2.3.10")
@file:DependsOn("io.ktor:ktor-client-content-negotiation-jvm:2.3.10")
@file:DependsOn("io.ktor:ktor-serialization-kotlinx-json-jvm:2.3.10")
to the main.kts script, it runs properly.
A Gradle consumer could automatically resolve them.
This is the same as with any feature variant that is published with Gradle.
It has dependencies that for non-Gradle consumers have to be added manually.Vampire
04/21/2024, 4:18 PMVampire
04/21/2024, 4:20 PM@file:DependsOn
does not support dependencies without a version.Vampire
04/21/2024, 4:21 PM-jvm
versions, as then also non-Gradle consumers can directly resolve the transitive dependencies.Nikky
04/21/2024, 9:03 PMVampire
04/21/2024, 9:19 PMVampire
04/21/2024, 9:19 PMNikky
04/21/2024, 9:19 PMNikky
04/21/2024, 9:22 PMVampire
04/21/2024, 9:25 PM