use of org.gradle.api.tasks.InputFiles in project atlas by alibaba.
the class MergeAwoManifests method getLibraryManifests.
/**
* A synthetic input to allow gradle up-to-date checks to work.
* <p>
* Since List<ManifestDependencyImpl> can't be used directly, as @Nested doesn't work on lists,
* this method gathers and returns the underlying manifest files.
*/
@SuppressWarnings("unused")
@InputFiles
List<File> getLibraryManifests() {
List<? extends AndroidLibrary> libs = getLibraries();
if (libs == null || libs.isEmpty()) {
return Collections.emptyList();
}
List<File> files = Lists.newArrayListWithCapacity(libs.size() * 2);
for (AndroidLibrary mdi : libs) {
files.add(mdi.getManifest());
}
return files;
}
use of org.gradle.api.tasks.InputFiles in project atlas by alibaba.
the class MergeAwbManifests method getLibraryManifests.
/**
* A synthetic input to allow gradle up-to-date checks to work.
* <p>
* Since List<ManifestDependencyImpl> can't be used directly, as @Nested doesn't work on lists,
* this method gathers and returns the underlying manifest files.
*/
@SuppressWarnings("unused")
@InputFiles
List<File> getLibraryManifests() {
List<? extends AndroidLibrary> libs = getLibraries();
if (libs == null || libs.isEmpty()) {
return Collections.emptyList();
}
List<File> files = Lists.newArrayListWithCapacity(libs.size() * 2);
for (AndroidLibrary mdi : libs) {
files.add(mdi.getManifest());
}
return files;
}
Aggregations