dc9b1bd51c
This PR adds a cache implementation that has all APIs as suspend functions. It uses guava's cache under the hood and handles query deduplication in a custom Entry type that we keep in the cache
29 lines
738 B
Groovy
29 lines
738 B
Groovy
apply plugin: 'java'
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'org.jetbrains.dokka'
|
|
|
|
group = GROUP
|
|
version = VERSION_NAME
|
|
|
|
compileKotlin {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
javadoc.dependsOn dokka
|
|
|
|
dependencies {
|
|
implementation project(':store')
|
|
apiElements project(':store')
|
|
implementation project(':suspendCache')
|
|
implementation libraries.kotlinStdLib
|
|
apiElements libraries.kotlinStdLib
|
|
|
|
testImplementation libraries.mockito
|
|
testImplementation libraries.junit
|
|
testImplementation libraries.commonsLang3
|
|
testImplementation libraries.assertJ
|
|
}
|
|
|
|
apply from: rootProject.file("gradle/maven-push.gradle")
|