1// See build.gradle for an explanation of what this file is. 2 3apply plugin: 'com.android.library' 4 5android { 6 useLibrary 'org.apache.http.legacy' 7 8 compileOptions { 9 sourceCompatibility JavaVersion.VERSION_1_7 10 targetCompatibility JavaVersion.VERSION_1_7 11 } 12} 13 14// Check if the android plugin version supports unit testing. 15if (configurations.findByName("testCompile")) { 16 dependencies { 17 testCompile "junit:junit:4.10" 18 testCompile "org.mockito:mockito-core:1.9.5" 19 testCompile "org.robolectric:robolectric:3.0" 20 } 21} 22 23// TODO(#4): Remove this once Javadoc errors are fixed 24if (JavaVersion.current().isJava8Compatible()) { 25 allprojects { 26 tasks.withType(Javadoc) { 27 options.addStringOption('Xdoclint:none', '-quiet') 28 } 29 } 30} 31