diff options
author | Alex Ruiz <alruiz@google.com> | 2013-09-05 11:56:45 -0700 |
---|---|---|
committer | Alex Ruiz <alruiz@google.com> | 2013-09-05 13:46:35 -0700 |
commit | 573c4d4483295e82d424edccfa8a7e781f75fcc9 (patch) | |
tree | 021f3923225906e18a8e9c731274181296dde005 /builder-model | |
parent | eaf4955fcadae4df32d406286d89cc91cc879e0e (diff) | |
download | build-573c4d4483295e82d424edccfa8a7e781f75fcc9.tar.gz |
Added "build model only" to Android Gradle plug-in.
This mode:
- Does not throw exceptions if there are unresolved
dependencies.
- Returns a list with the names and versions of the
unresolved dependencies
- Can be enabled through a system property defined
in AndroidProject
Change-Id: I0c446c7693e2eeb9c2e7b0c1f7381beb2edb0852
Diffstat (limited to 'builder-model')
-rw-r--r-- | builder-model/src/main/java/com/android/builder/model/AndroidProject.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/builder-model/src/main/java/com/android/builder/model/AndroidProject.java b/builder-model/src/main/java/com/android/builder/model/AndroidProject.java index f3929e1..5d36860 100644 --- a/builder-model/src/main/java/com/android/builder/model/AndroidProject.java +++ b/builder-model/src/main/java/com/android/builder/model/AndroidProject.java @@ -18,6 +18,7 @@ package com.android.builder.model; import com.android.annotations.NonNull; +import java.util.Collection; import java.util.List; import java.util.Map; @@ -26,6 +27,7 @@ import java.util.Map; * the module is an app project or a library project. */ public interface AndroidProject { + String BUILD_MODEL_ONLY_SYSTEM_PROPERTY = "android.build.model.only"; /** * Returns the model version. This is a string in the format X.Y.Z @@ -121,4 +123,17 @@ public interface AndroidProject { */ @NonNull AaptOptions getAaptOptions(); + + /** + * Returns the dependencies that were not successfully resolved. The returned list gets + * populated only if the system property {@link #BUILD_MODEL_ONLY_SYSTEM_PROPERTY} has been + * set to {@code true}. + * <p> + * Each value of the collection has the format group:name:version, for example: + * com.google.guava:guava:15.0.2 + * + * @return the dependencies that were not successfully resolved. + */ + @NonNull + Collection<String> getUnresolvedDependencies(); } |