Search in sources :

Example 1 with ProjectDependencyFactory

use of org.gradle.api.internal.notations.ProjectDependencyFactory in project gradle by gradle.

the class DependencyManagementBuildScopeServices method createDependencyFactory.

DependencyFactory createDependencyFactory(Instantiator instantiator, ProjectAccessListener projectAccessListener, StartParameter startParameter, ClassPathRegistry classPathRegistry, CurrentGradleInstallation currentGradleInstallation, FileLookup fileLookup, RuntimeShadedJarFactory runtimeShadedJarFactory) {
    DefaultProjectDependencyFactory factory = new DefaultProjectDependencyFactory(projectAccessListener, instantiator, startParameter.isBuildProjectDependencies());
    ProjectDependencyFactory projectDependencyFactory = new ProjectDependencyFactory(factory);
    return new DefaultDependencyFactory(DependencyNotationParser.parser(instantiator, factory, classPathRegistry, fileLookup, runtimeShadedJarFactory, currentGradleInstallation), DependencyConstraintNotationParser.parser(instantiator), new ClientModuleNotationParserFactory(instantiator).create(), projectDependencyFactory);
}
Also used : ClientModuleNotationParserFactory(org.gradle.api.internal.notations.ClientModuleNotationParserFactory) ProjectDependencyFactory(org.gradle.api.internal.notations.ProjectDependencyFactory)

Example 2 with ProjectDependencyFactory

use of org.gradle.api.internal.notations.ProjectDependencyFactory in project gradle by gradle.

the class DependencyManagementBuildScopeServices method createDependencyFactory.

DependencyFactory createDependencyFactory(Instantiator instantiator, DefaultProjectDependencyFactory factory, ClassPathRegistry classPathRegistry, CurrentGradleInstallation currentGradleInstallation, FileCollectionFactory fileCollectionFactory, RuntimeShadedJarFactory runtimeShadedJarFactory, ImmutableAttributesFactory attributesFactory, SimpleMapInterner stringInterner) {
    NotationParser<Object, Capability> capabilityNotationParser = new CapabilityNotationParserFactory(false).create();
    ProjectDependencyFactory projectDependencyFactory = new ProjectDependencyFactory(factory);
    return new DefaultDependencyFactory(DependencyNotationParser.parser(instantiator, factory, classPathRegistry, fileCollectionFactory, runtimeShadedJarFactory, currentGradleInstallation, stringInterner, attributesFactory, capabilityNotationParser), DependencyConstraintNotationParser.parser(instantiator, factory, stringInterner, attributesFactory), new ClientModuleNotationParserFactory(instantiator, stringInterner).create(), capabilityNotationParser, projectDependencyFactory, attributesFactory);
}
Also used : Capability(org.gradle.api.capabilities.Capability) ClientModuleNotationParserFactory(org.gradle.api.internal.notations.ClientModuleNotationParserFactory) ProjectDependencyFactory(org.gradle.api.internal.notations.ProjectDependencyFactory) CapabilityNotationParserFactory(org.gradle.api.internal.artifacts.dsl.CapabilityNotationParserFactory)

Aggregations

ClientModuleNotationParserFactory (org.gradle.api.internal.notations.ClientModuleNotationParserFactory)2 ProjectDependencyFactory (org.gradle.api.internal.notations.ProjectDependencyFactory)2 Capability (org.gradle.api.capabilities.Capability)1 CapabilityNotationParserFactory (org.gradle.api.internal.artifacts.dsl.CapabilityNotationParserFactory)1