use of org.gradle.nativeplatform.Repositories in project gradle by gradle.
the class PrebuiltLibraryBinaryLocator method getBinaries.
@Nullable
@Override
public DomainObjectSet<NativeLibraryBinary> getBinaries(LibraryIdentifier library) {
ModelRegistry projectModel = projectModelResolver.resolveProjectModel(library.getProjectPath());
Repositories repositories = projectModel.find("repositories", Repositories.class);
if (repositories == null) {
return null;
}
PrebuiltLibrary prebuiltLibrary = getPrebuiltLibrary(repositories.withType(PrebuiltLibraries.class), library.getLibraryName());
return prebuiltLibrary != null ? prebuiltLibrary.getBinaries() : null;
}
Aggregations