I have this: ``` dependencySubstitution { ...
# announcements
t
I have this:
Copy code
dependencySubstitution {
            substitute module("org.jetbrains.kotlin:kotlin-stdlib-jre7") with module("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion")
            substitute module("org.jetbrains.kotlin:kotlin-stdlib-jre8") with module("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
}
d
Thanks. Doesn't seem to work for me, though. Maybe because in my case the dependency is nested
t
I have that block to handle transitive dependencies, so that should work ok
Are you applying it to all projects?
d
I have
Copy code
configurations { main }
configurations.main.resolutionStrategy.dependencySubstitution {
    substitute module("org.jetbrains.kotlin:kotlin-stdlib-jre7") with module("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version")
    substitute module("org.jetbrains.kotlin:kotlin-stdlib-jre8") with module("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
}
in each of the relevant projects
t
Try it in
all
rather than
main
d
\o/ that works. Thanks so much @tddmonkey
t
np