Slackbot
11/08/2022, 5:57 AMVampire
11/08/2022, 7:45 AMDeepthi Kodatham
11/08/2022, 2:34 PMVampire
11/08/2022, 2:58 PMDeepthi Kodatham
11/08/2022, 3:07 PMDeepthi Kodatham
11/08/2022, 3:16 PMimplementation("com.google.code.gson:gson") {
version {
strictly("2.9.0")
}
}
Deepthi Kodatham
11/08/2022, 3:16 PMDeepthi Kodatham
11/08/2022, 3:17 PMimplementation('com.google.code.gson:gson:2.9.0') {
force = true
}
Deepthi Kodatham
11/08/2022, 3:19 PMVampire
11/08/2022, 3:23 PMclasspath
configuration in the buildscript
block, not for the production dependencies in the implementation
configuration.Vampire
11/08/2022, 3:24 PMbuildscript {
dependencies {
classpath('com.google...') { ... }
}
}
Deepthi Kodatham
11/08/2022, 3:24 PMDeepthi Kodatham
11/08/2022, 3:25 PMforce=true
and strictly
be used in the buildscript block.Vampire
11/08/2022, 3:29 PMforce
should usually not be used anymore nowadaysDeepthi Kodatham
11/08/2022, 3:32 PMbuildscript {
dependencies {
classpath('com.google.code.gson:gson')
{
version {
strictly("2.9.0")
}
}
}
}
Vampire
11/08/2022, 3:35 PMclasspath('com.google.code.gson:gson:2.9.0!!')
should also work if you want it more compact. !!
is the inline notation for strictlyDeepthi Kodatham
11/08/2022, 3:35 PM