Skip to content

sortDepenecncies fails on fileTree #105

@tir38

Description

@tir38

Our build.gradle contains this line:

  implementation fileTree(dir: 'libs', include: 'somejar.1.2.3.jar')

This is causing sortDependencies to exit with error code 3. Removing this one line from build.gradle fixes the problem.

Oddly checkDependencies passes just fine. There is not much in the stacktrace or debug logs. The first meaningful line from the stacktrace is:

Caused by: org.gradle.process.internal.ExecException: Process 'command '/MY_JDK/Contents/Home/bin/java'' finished with non-zero exit value 3
        at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:442)
        at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:52)
        at org.gradle.process.internal.DefaultExecActionFactory.javaexec(DefaultExecActionFactory.java:195)
        at org.gradle.process.internal.DefaultExecOperations.javaexec(DefaultExecOperations.java:42)
        at com.squareup.sort.SortDependenciesTask.action(SortDependenciesTask.kt:60)

FWIW we are on plugin version 0.7 and AGP version 8.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions