This message was deleted.
# dependency-management
s
This message was deleted.
v
You mean like
Copy code
components {
    withModule("com.android.tools.build:gradle") {
        withVariant("apiElements") {
            attributes {
                attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_RUNTIME))
            }
        }
        withVariant("runtimeElements") {
            attributes {
                attribute(Attribute.of(String::class.java), "foo")
            }
        }
    }
}
? I'm not sure whether that is a good idea 😄
t
I want to create a module (not used anywhere) where I can see all the compile and runtime dependencies of AGP, so I browse the source code in IDEA. So it is a good idea 😉
(They had all these deps on the
api
, but recently they moved a ton of it on `implementation`/`runtimeOnly` internally. When you're navigating their code, and wanting to find an implementation of an interface, correctness doesn't matter much...)