1apply plugin: 'java' 2 3// Create an implicit target which is a collection of jars 4// required for running Robolectric v3 tests 5 6// Heavily inspired by its google3 equivalent at 7// https://cs.corp.google.com/#piper///depot/google3/third_party/java/robolectric/v3_0_SNAPSHOT/BUILD 8 9sourceSets { 10 main.java.srcDirs = [] 11 test.java.srcDirs = [] 12} 13 14dependencies { 15 compile "org.ow2.asm:asm:5.0.3" 16 compile "org.ow2.asm:asm-commons:5.0.3" 17 compile "org.ow2.asm:asm-tree:5.0.3" 18 compile "org.ow2.asm:asm-util:5.0.3" 19 compile "org.apache.ant:ant:1.8.0" 20 compile "com.google.guava:guava:17.0" 21 compile "org.apache.httpcomponents:httpclient:4.1.1" 22 compile "org.bouncycastle:bcprov-jdk15on:1.48" 23 compile "com.ibm.icu:icu4j:54.1.1" 24 25 // Prebuilts only needed for Robolectric and less useful 26 // for other teams. 27 compile files("libs/sqlite4java-0.282.jar") 28 compile files("libs/vtd-xml-2.11.jar") 29 30 // Jars built by the Robolectric team used across all 31 // Android versions 32 compile fileTree(dir: ".", include: "*.jar") 33 34 // Use highest version of Android supported by Robolectric for 35 // compilation. Actual implementation jar will be decided at 36 // runtime based on sdk version specified in test. 37 compile files("runtime/android-all-5.0.0_r2-robolectric-1.jar") 38 compile files("runtime/json-20080701.jar") 39 compile files("runtime/shadows-core-3.1-SNAPSHOT-21.jar") 40} 41