This message was deleted.
# dependency-management
s
This message was deleted.
t
dependency constraints. For example
Copy code
dependencies {
    constraints {
      // Some plugins (e.g., Paparazzi) try to quietly upgrade the version of AGP we use.
      classpath('com.android.tools.build:gradle') {
        version {
          strictly '7.1.2'
        }
      }
    }
}
(that's almost exactly code we have in our repo)
m
Thanks
hmm, is this Gradle 7+ only? getting
Could not find method classpath() for arguments
(I am on 6.7)
nvm, user error - replaced
classpath
with
testImplementation
and it seems to be working - need to see if I can use minimum version instead of a strict one now. Thanks
t
yeah, sorry, should have been more clear on the context. That snippet was pulled from a
buildscript
block
google "gradle rich versions" or something like that and you'll see the options available
m
Thinking is part of asking questions 😄 I figured out that
require
means “at least this version” vs
strict
- Thanks
👍 1