Unify Gradle and Kotlin daemon cache version checking

This commit is contained in:
Alexey Tsvetkov
2016-12-19 16:59:15 +03:00
parent d5e42e3271
commit de2736489b
6 changed files with 24 additions and 11 deletions
@@ -34,6 +34,12 @@ interface IncrementalCompilationServicesFacade : Remote {
@Throws(RemoteException::class)
fun workingDir(): File
@Throws(RemoteException::class)
fun customCacheVersionFileName(): String
@Throws(RemoteException::class)
fun customCacheVersion(): Int
// ICReporter
@Throws(RemoteException::class)
@@ -362,7 +362,8 @@ class CompileServiceImpl(
val changesRegistry = RemoteChangesRegostry(servicesFacade)
val workingDir = servicesFacade.workingDir()
val versions = commonCacheVersions(workingDir) + standaloneCacheVersion(workingDir, forceEnable = true)
val versions = commonCacheVersions(workingDir) +
customCacheVersion(servicesFacade.customCacheVersion(), servicesFacade.customCacheVersionFileName(), workingDir, forceEnable = true)
try {
printStream.print(renderer.renderPreamble())