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

Parallelize resolution of dependencies based on projects when resolving only third party #920

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

raviagarwal7
Copy link
Collaborator

@raviagarwal7 raviagarwal7 commented Jul 16, 2020

Since multiple configurations on the same project cannot be resolved simultaneously adding the ability to parallel resolve deps by utilizing all the available projects.

// okbuck config
okbuck {
    externalDependencies {
        // enables exported deps resolution
        enableExportedDeps = true
        // only resolves third party deps
        thirdPartyResolutionOnly = true
   }
}

// settings.gradle
include ":tooling:gradle"
include ":tooling:gradle:dummy1"
include ":tooling:gradle:dummy2"
include ":tooling:gradle:dummy3"
include ":tooling:gradle:dummy4"
include ":tooling:gradle:dummy5"

// Add a simple build.gradle file to each dummy project
apply plugin: "java"

Now the above setup will make a total of 8 projects available to grade (root-project, :tooling, and the ones defined explicitly) which will be able to parallelize resolving configurations on up to 8 threads.

@raviagarwal7 raviagarwal7 merged commit 2bc46b6 into master Jul 16, 2020
@raviagarwal7 raviagarwal7 deleted the ravi/parallel branch July 16, 2020 18:05
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

Successfully merging this pull request may close these issues.

2 participants