1 plugins { 2 id "net.ltgt.errorprone" version "0.0.13" 3 } 4 5 new RoboJavaModulePlugin( 6 deploy: true 7 ).apply(project) 8 9 apply plugin: ShadowsPlugin 10 11 shadows { 12 packageName "org.robolectric.shadows.gms" 13 } 14 15 dependencies { 16 compileOnly project(":shadows:framework") 17 18 compileOnly "com.android.support:support-fragment:26.0.1" 19 compileOnly "com.google.android.gms:play-services-base:8.4.0" 20 compileOnly "com.google.android.gms:play-services-basement:8.4.0" 21 22 compileOnly AndroidSdk.MAX_SDK.coordinates 23 24 // Testing dependencies 25 testCompile project(":robolectric") 26 testCompile "junit:junit:4.12" 27 testCompile "org.assertj:assertj-core:3.8.0" 28 testCompile "org.mockito:mockito-core:2.5.4" 29 testRuntime "com.android.support:support-fragment:26.0.1" 30 testRuntime "com.google.android.gms:play-services-base:8.4.0" 31 testRuntime "com.google.android.gms:play-services-basement:8.4.0" 32 33 testRuntime AndroidSdk.MAX_SDK.coordinates 34 } 35