Open ZacSweers opened 1 year ago
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")
Some dependences can include a trailing lambda to further configure the dependency