1 import android.support.LibraryVersions 2 import android.support.SupportLibraryExtension 3 apply plugin: android.support.SupportKotlinLibraryPlugin 4 5 sourceSets { 6 test.java.srcDirs += 'src/tests/kotlin' 7 } 8 9 // Temporary hack to stop AS to adding two guavas into test's classpath 10 configurations.all { 11 resolutionStrategy { 12 force libs.guava 13 } 14 } 15 16 dependencies { 17 compile project(":lifecycle:common") 18 compile libs.kotlin.stdlib 19 compile libs.auto_common 20 compile libs.javapoet 21 testCompile libs.google_compile_testing 22 testCompile libs.jsr250 23 testCompile files(org.gradle.internal.jvm.Jvm.current().getToolsJar()) 24 } 25 26 version = LibraryVersions.LIFECYCLES_EXT.toString() 27 createKotlinCheckstyle(project) 28 29 supportLibrary { 30 name 'Android Lifecycles Compiler' 31 publish true 32 inceptionYear '2017' 33 description "Android Lifecycles annotation processor" 34 url SupportLibraryExtension.ARCHITECTURE_URL 35 } 36