https://kotlinlang.org logo
n

nkiesel

03/16/2022, 9:44 AM
If I see a
public const val kotlin_stdlib_jdk8: String = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:_"
in
Libs.kt
, how do I know which version from
version.properties
will be used to replace the
_
? Do I first have to search for
<http://version.org|version.org>_jetbrains_kotlin..kotlin_stdlib_jdk8
and then - if that does not exist - look for variations like
<http://version.org|version.org>_jetbrains_kotlin
or
version.kotlin_stdlib_jdk8
or
version.kotlin
? And do I know which if these will be used if they all exist but have different values?
n

Nikky

03/17/2022, 6:22 PM
generally refreshVersions with put
#unused
on entries that are not used by any dependency ./. not sure how realiably it works and ideally for kotlin and other popular dependencies there is rules setup to have them point to a single entry eg.
version.kotlin
@jmfayard would it be possible.. (or does it exist and i just overlooked it) to add a task like
inpectRefreshversionDependency
that you feed with a dependency notation and it tells you what versionKey it resolves to ?
j

jmfayard

03/17/2022, 8:48 PM
In cases that's not obvious, I would do gradlew dependencies --scan and open the dependencies tab to see how it's resolved
8 Views