Refactor: move allVersions() to jps-plugin since it is jps specific

This commit is contained in:
Alexey Tsvetkov
2016-03-28 03:04:46 +03:00
parent 5d2d827772
commit 4c782dbfcc
2 changed files with 15 additions and 14 deletions
@@ -112,15 +112,3 @@ fun dataContainerCacheVersion(dataRoot: File): CacheVersion =
whenTurnedOn = CacheVersion.Action.REBUILD_ALL_KOTLIN,
whenTurnedOff = CacheVersion.Action.CLEAN_DATA_CONTAINER,
isEnabled = { IncrementalCompilation.isExperimental() })
fun allCachesVersions(containerDataRoot: File, dataRoots: Iterable<File>): Iterable<CacheVersion> {
val versions = arrayListOf<CacheVersion>()
versions.add(dataContainerCacheVersion(containerDataRoot))
for (dataRoot in dataRoots) {
versions.add(normalCacheVersion(dataRoot))
versions.add(experimentalCacheVersion(dataRoot))
}
return versions
}