I create Bom In this BOM constraints many dependency (for example io.github.microutils:kotlin-logging, ch.qos.logback:logback-classic) When i add this BOM to my application and remove version (kotlin-logging, logback-classic) i have error
Could not find io.github.microutils:kotlin-logging:.
But for dependency logback-classic gradle resolve version.
How to reproduce:
- clone exemple project
- execute in module bom task publishToMavenLocal
- remove version kotlin-logging
- try build module application
how should i declare dependency not to specify version ?
i use runtime for declar dependency. After Read https://docs.gradle.org/6.7.1/userguide/java_platform_plugin.html#sec:java_platform_separation i change on api, and it worked