blob: 492104fe05e887df1e5c75a03cd3b84eeb629d2d [file] [log] [blame]
apply plugin: ''
You might have to download JDK8 and set JAVA8_HOME (or set the jdk to Java 8 via Project Structure).
For detailed instructions, see
apply plugin: 'me.tatarka.retrolambda'
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
minSdkVersion 21
targetSdkVersion 21
versionCode 1
versionName "1.0"
dependencies {
/* If the application wishes to use support libraries, it should include them as compile
dependencies in its own build.gradle. */
Follow Android Studio instructions at the bottom of the page to install the Lombok
testCompile('org.powermock:powermock-api-mockito:1.6.3') {
exclude module: 'mockito-all'
compile fileTree(dir: 'libs', include: ['*.jar'])
Word of caution: for local unit tests, Android log statements fail with
UnsatisfiedLinkError (hence the slf4j-simple implementation for testCompile).
Applications should include a suitable runtime binding, such as
apk ('org.slf4j:slf4j-android:1.7.12')