35 lines
940 B
Groovy
35 lines
940 B
Groovy
import android.support.LibraryVersions
|
|
import android.support.SupportLibraryExtension
|
|
apply plugin: android.support.SupportKotlinLibraryPlugin
|
|
|
|
sourceSets {
|
|
test.java.srcDirs += 'src/tests/kotlin'
|
|
}
|
|
|
|
// Temporary hack to stop AS to adding two guavas into test's classpath
|
|
configurations.all {
|
|
resolutionStrategy {
|
|
force libs.guava
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(":lifecycle:common")
|
|
compile libs.kotlin.stdlib
|
|
compile libs.auto_common
|
|
compile libs.javapoet
|
|
testCompile libs.google_compile_testing
|
|
testCompile libs.jsr250
|
|
testCompile files(org.gradle.internal.jvm.Jvm.current().getToolsJar())
|
|
}
|
|
|
|
version = LibraryVersions.LIFECYCLES_EXT.toString()
|
|
createKotlinCheckstyle(project)
|
|
|
|
supportLibrary {
|
|
name 'Android Lifecycles Compiler'
|
|
publish true
|
|
inceptionYear '2017'
|
|
description "Android Lifecycles annotation processor"
|
|
url SupportLibraryExtension.ARCHITECTURE_URL
|
|
}
|