[main] INFO Sorter - Sorting build.gradle(.kts) scripts in the following paths: build.gradle
[main] INFO Sorter - It took 2 ms to find 1 build scripts.
[main] WARN Sorter - Parsing error: /Users/jameson.williams/MyProj/build.gradle
Unknown dependency kind. Was <> for /Users/jameson.williams/MyProj/build.gradle
[main] INFO Sorter - Metrics:
Successful sorts: 0
Already sorted: 0
Parse errors: 1
Sort duration: 26 ms.
[main] INFO Sorter - Operation took 33 ms
[main] INFO Sorter - See log file at /var/folders/08/jzg4dnq92tz9x4bfn3_qw8lh0000gp/T/11468170203746801189.tmp
We'd have to define the sort behavior for such blocks, but perhaps collecting them at the bottom would be a viable option.
Consider a Gradle script like this one, where there are some out-of-order single-line statements followed by a more complex control-flow block:
When I run
The output will be
We'd have to define the sort behavior for such blocks, but perhaps collecting them at the bottom would be a viable option.