square / gradle-dependencies-sorter

A CLI app and Gradle plugin to sort the dependencies in your Gradle build scripts
Apache License 2.0
259 stars 12 forks source link

Support IntelliJ Platform Dependency extension syntax #104

Open WhosNickDoglio opened 3 months ago

WhosNickDoglio commented 3 months ago

The upcoming IntelliJ Platfrom Gradle plugin has a new syntax for defining IDE related dependencies that sortDependencies does not like. ./gradlew checkSortDependencies oddly enough passes but the sortDependencies task will fail when running into this syntax.

dependencies {
    intellijPlatform {
        instrumentationTools()
        androidStudio(libs.versions.androidStudio)
    }
}
WhosNickDoglio commented 3 weeks ago

Reproducer: https://github.com/WhosNickDoglio/ide-plugin-sort-dependency-issue