Search in sources :

Example 11 with IncludedBuildState

use of org.gradle.internal.build.IncludedBuildState in project gradle by gradle.

the class DefaultIncludedBuildRegistry method ensureConfigured.

@Override
public void ensureConfigured(IncludedBuildState buildToConfigure) {
    if (currentlyConfiguring.contains(buildToConfigure)) {
        return;
    }
    currentlyConfiguring.add(buildToConfigure);
    buildToConfigure.ensureProjectsConfigured();
    GradleInternal gradle = buildToConfigure.getMutableModel();
    for (IncludedBuildInternal reference : gradle.includedBuilds()) {
        BuildState target = reference.getTarget();
        if (target instanceof IncludedBuildState) {
            dependencySubstitutionsBuilder.build((IncludedBuildState) target);
        }
    }
    currentlyConfiguring.remove(buildToConfigure);
}
Also used : IncludedBuildInternal(org.gradle.internal.composite.IncludedBuildInternal) GradleInternal(org.gradle.api.internal.GradleInternal) IncludedBuildState(org.gradle.internal.build.IncludedBuildState) BuildState(org.gradle.internal.build.BuildState) RootBuildState(org.gradle.internal.build.RootBuildState) IncludedBuildState(org.gradle.internal.build.IncludedBuildState)

Aggregations

IncludedBuildState (org.gradle.internal.build.IncludedBuildState)11 BuildState (org.gradle.internal.build.BuildState)5 IncludedBuildInternal (org.gradle.internal.composite.IncludedBuildInternal)5 GradleInternal (org.gradle.api.internal.GradleInternal)4 Project (org.gradle.api.Project)3 RootBuildState (org.gradle.internal.build.RootBuildState)3 File (java.io.File)2 BuildDefinition (org.gradle.api.internal.BuildDefinition)2 DefaultGradleProject (org.gradle.plugins.ide.internal.tooling.model.DefaultGradleProject)2 LinkedHashSet (java.util.LinkedHashSet)1 ModuleVersionIdentifier (org.gradle.api.artifacts.ModuleVersionIdentifier)1 BuildIdentifier (org.gradle.api.artifacts.component.BuildIdentifier)1 ModuleComponentSelector (org.gradle.api.artifacts.component.ModuleComponentSelector)1 ProjectComponentIdentifier (org.gradle.api.artifacts.component.ProjectComponentIdentifier)1 SettingsInternal (org.gradle.api.internal.SettingsInternal)1 DefaultBuildIdentifier (org.gradle.api.internal.artifacts.DefaultBuildIdentifier)1 BuildClientMetaData (org.gradle.initialization.BuildClientMetaData)1 IncludedBuildSpec (org.gradle.initialization.IncludedBuildSpec)1 Pair (org.gradle.internal.Pair)1 LocalComponentMetadata (org.gradle.internal.component.local.model.LocalComponentMetadata)1