Search in sources :

Example 1 with CapabilityNotationParserFactory

use of org.gradle.api.internal.artifacts.dsl.CapabilityNotationParserFactory 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

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