Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: third_party/robolectric/BUILD.gn

Issue 2508553002: generate_gradle.py: Add support for junit and java_binary targets (Closed)
Patch Set: update docs/android_studio.md to no long say junit doesn't work Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « docs/android_studio.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/robolectric/BUILD.gn
diff --git a/third_party/robolectric/BUILD.gn b/third_party/robolectric/BUILD.gn
index 560e1db785eec7ad8663504239f4f1fbd1c8c588..732980e26426275a768e2b83279b6efb0250c8ce 100644
--- a/third_party/robolectric/BUILD.gn
+++ b/third_party/robolectric/BUILD.gn
@@ -113,6 +113,9 @@ java_library("robolectric_java") {
"robolectric/robolectric/src/main/resources/robolectric-version.properties"),
"robolectric-version.properties",
] ]
+
+ # Work-around for gradle generator not yet supporting additional_jar_files.
+ gradle_treat_as_prebuilt = true
}
java_library("robolectric_annotations_java") {
@@ -160,6 +163,9 @@ java_library("robolectric_processor_java") {
"robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/processing/validator/Validator.java",
"robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/processing/validator/package-info.java",
]
+
+ # Work-around for gradle generator not yet supporting annotation processors.
+ gradle_treat_as_prebuilt = true
}
java_library("robolectric_resources_java") {
@@ -639,6 +645,9 @@ template("shadows_core") {
"//third_party/sqlite4java:sqlite4java_java",
]
deps += invoker.android_sdk_deps
+
+ # Work-around for gradle generator not yet supporting annotation processors.
+ gradle_treat_as_prebuilt = true
}
}
@@ -672,4 +681,7 @@ java_library("shadows-multidex-3.0_java") {
"//third_party/android_tools:android_support_multidex_java",
"//third_party/guava:guava_java",
]
+
+ # Work-around for gradle generator not yet supporting annotation processors.
+ gradle_treat_as_prebuilt = true
}
« no previous file with comments | « docs/android_studio.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698