gradle-dependencies-sorter
gradle-dependencies-sorter copied to clipboard
Feature request: support dependency configuration syntax
trafficstars
Some dependences can include a trailing lambda to further configure the dependency
implementation(libs.someExternalSdk) {
artifact {
name = "some-external-sdk"
type = "aar"
}
}
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' }.
@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")