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

resolutionAction LATEST fails resolving androidx.test.services:test-services #861

Open
artem-zinnatullin opened this issue Jul 23, 2019 · 0 comments

Comments

@artem-zinnatullin
Copy link
Contributor

When following configuration is applied:

externalDependencies {
    enableExportedDeps = true
    resolutionAction = com.uber.okbuck.extension.ResolutionAction.LATEST
}

It seems that OkBuck tries to resolve the artifact (jar/aar) of androidx.test.services:test-services:1.1.1 because it's a runtime dependency of androidx.test:orchestrator:1.1.1;runtime

However androidx.test.services:test-services:1.1.1 only has .pom and .apk (!) published on maven.google.com

OkBuck ends up crashing with:

Caused by: java.lang.RuntimeException: Couldn't find androidx.test.services:test-services:1.1.1;runtime child of parents -> [androidx.test:orchestrator:1.1.1;runtime] in final resolved deps.
        at com.uber.okbuck.core.manager.DependencyManager.dependencyException(DependencyManager.java:313)
        at com.uber.okbuck.core.manager.DependencyManager.lambda$childDependencies$15(DependencyManager.java:291)
        at com.uber.okbuck.core.manager.DependencyManager.lambda$childDependencies$17(DependencyManager.java:303)
        at com.uber.okbuck.core.manager.DependencyManager.childDependencies(DependencyManager.java:305)
        at com.uber.okbuck.core.manager.DependencyManager.lambda$updateDependencies$14(DependencyManager.java:250)
        at com.uber.okbuck.core.manager.DependencyManager.updateDependencies(DependencyManager.java:247)
        at com.uber.okbuck.core.manager.DependencyManager.finalizeDependencies(DependencyManager.java:97)
        at com.uber.okbuck.OkBuckGradlePlugin.lambda$apply$0(OkBuckGradlePlugin.java:190)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:704)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:671)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:117)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:106)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:85)
        ... 37 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant