Feature request: support dependency configuration syntax
ZacSweers opened this issue · 2 comments
ZacSweers commented
Some dependences can include a trailing lambda to further configure the dependency
implementation(libs.someExternalSdk) {
artifact {
name = "some-external-sdk"
type = "aar"
}
}
autonomousapps commented
Is this a feature request or a bug? I thought the grammar could already handle trailing lambas? For example, I think we have a test verifying that it supports { because 'reason' }
.
technoir42 commented
@autonomousapps one example where sorting currently produces invalid code:
dependencies {
- apiImplementation project(":Utils")
-
implementation(project(":MyProject")) {
capabilities {
requireCapability("com.my.lib:api")
}
- }
+
+ apiImplementation project(":Utils")
+}
runtimeOnly project(":OtherProject")