autonomousapps / dependency-analysis-gradle-plugin

Gradle plugin for JVM projects written in Java, Kotlin, Groovy, or Scala; and Android projects written in Java or Kotlin. Provides advice for managing dependencies and other applied plugins
Apache License 2.0
1.67k stars 115 forks source link

Bump gradle-script-grammar to v0.3 #1122

Closed ivanalvarado closed 4 months ago

ivanalvarado commented 5 months ago

Description

Actual Results

Currently, if you run fixDependencies task and you have a dependency with the following syntax:

dependencies {
    implementation (libs.spotify.authSdk) {
        artifact {
            type = "aar"
        }
    }
    api libs.androidx.constraintLayout
    implementation projects.common.kotlinxCoroutines
    implementation libs.kotlinx.coroutines.rx2
}

the dependencies will be rewritten as:

dependencies {
    implementation (libs.spotify.authSdk) {
        artifact {
            type = "aar"
        }
    api libs.androidx.constraintLayout
    implementation projects.common.kotlinxCoroutines
    implementation libs.kotlinx.coroutines.rx2
}

Notice there's a missing curly brace.

Expected Results

Running fixDependencies should be able to handle multiple closures, which is supported in gradle-script-grammar v0.3