| import org.robolectric.gradle.DeployedRoboJavaModulePlugin |
| import org.robolectric.gradle.RoboJavaModulePlugin |
| |
| apply plugin: RoboJavaModulePlugin |
| apply plugin: 'kotlin' |
| apply plugin: DeployedRoboJavaModulePlugin |
| apply plugin: "com.diffplug.spotless" |
| |
| spotless { |
| kotlin { |
| target '**/*.kt' |
| ktfmt('0.34').googleStyle() |
| } |
| } |
| |
| dependencies { |
| api project(":annotations") |
| api project(":pluginapi") |
| api "javax.inject:javax.inject:1" |
| api "javax.annotation:javax.annotation-api:1.3.2" |
| |
| // For @VisibleForTesting and ByteStreams |
| implementation "com.google.guava:guava:$guavaJREVersion" |
| compileOnly "com.google.code.findbugs:jsr305:3.0.2" |
| |
| testCompileOnly "com.google.auto.service:auto-service-annotations:$autoServiceVersion" |
| testAnnotationProcessor "com.google.auto.service:auto-service:$autoServiceVersion" |
| testAnnotationProcessor "com.google.errorprone:error_prone_core:$errorproneVersion" |
| implementation "com.google.errorprone:error_prone_annotations:$errorproneVersion" |
| |
| testImplementation "junit:junit:${junitVersion}" |
| testImplementation "com.google.truth:truth:${truthVersion}" |
| testImplementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion" |
| testImplementation "org.mockito:mockito-core:${mockitoVersion}" |
| } |