org.gradle.api.internal.artifacts.dependencies.DefaultSelfResolvingDependency Java Examples
The following examples show how to use
org.gradle.api.internal.artifacts.dependencies.DefaultSelfResolvingDependency.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Utils.java From Injector with Apache License 2.0 | 5 votes |
public static Dependency createDependencyFrom(ResolvedArtifact resolvedArtifact) { ModuleVersionIdentifier identifier = resolvedArtifact.getModuleVersion().getId(); return identifier.getGroup().isEmpty() ? new DefaultSelfResolvingDependency( resolvedArtifact.getId().getComponentIdentifier(), new DefaultFileCollectionFactory(new IdentityFileResolver(), null).fixed(resolvedArtifact.getFile()) ) : new DefaultExternalModuleDependency( identifier.getGroup(), identifier.getName(), identifier.getVersion()); }
Example #2
Source File: DependencyFilesNotationParser.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void convert(FileCollection notation, NotationConvertResult<? super SelfResolvingDependency> result) throws TypeConversionException { result.converted(instantiator.newInstance(DefaultSelfResolvingDependency.class, notation)); }
Example #3
Source File: DependencyClassPathNotationParser.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void convert(DependencyFactory.ClassPathNotation notation, NotationConvertResult<? super SelfResolvingDependency> result) throws TypeConversionException { Collection<File> classpath = classPathRegistry.getClassPath(notation.name()).getAsFiles(); FileCollection files = fileResolver.resolveFiles(classpath); result.converted(instantiator.newInstance(DefaultSelfResolvingDependency.class, files)); }
Example #4
Source File: DependencyFilesNotationParser.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public SelfResolvingDependency parseType(FileCollection notation) { return instantiator.newInstance(DefaultSelfResolvingDependency.class, notation); }
Example #5
Source File: DependencyClassPathNotationParser.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public SelfResolvingDependency parseType(DependencyFactory.ClassPathNotation notation) { Collection<File> classpath = classPathRegistry.getClassPath(notation.name()).getAsFiles(); FileCollection files = fileResolver.resolveFiles(classpath); return instantiator.newInstance(DefaultSelfResolvingDependency.class, files); }
Example #6
Source File: DependencyFilesNotationParser.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void convert(FileCollection notation, NotationConvertResult<? super SelfResolvingDependency> result) throws TypeConversionException { result.converted(instantiator.newInstance(DefaultSelfResolvingDependency.class, notation)); }
Example #7
Source File: DependencyClassPathNotationParser.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void convert(DependencyFactory.ClassPathNotation notation, NotationConvertResult<? super SelfResolvingDependency> result) throws TypeConversionException { Collection<File> classpath = classPathRegistry.getClassPath(notation.name()).getAsFiles(); FileCollection files = fileResolver.resolveFiles(classpath); result.converted(instantiator.newInstance(DefaultSelfResolvingDependency.class, files)); }
Example #8
Source File: DependencyFilesNotationParser.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public SelfResolvingDependency parseType(FileCollection notation) { return instantiator.newInstance(DefaultSelfResolvingDependency.class, notation); }
Example #9
Source File: DependencyClassPathNotationParser.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public SelfResolvingDependency parseType(DependencyFactory.ClassPathNotation notation) { Collection<File> classpath = classPathRegistry.getClassPath(notation.name()).getAsFiles(); FileCollection files = fileResolver.resolveFiles(classpath); return instantiator.newInstance(DefaultSelfResolvingDependency.class, files); }