Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sortDepenecncies fails on fileTree #105

Open
tir38 opened this issue Aug 1, 2024 · 0 comments
Open

sortDepenecncies fails on fileTree #105

tir38 opened this issue Aug 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tir38
Copy link

tir38 commented Aug 1, 2024

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

@autonomousapps autonomousapps added the bug Something isn't working label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants