blob: 6716fa4c4b7af2b384691404f5f905dc9d140079 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.jps.incremental
import java.nio.file.Path
private const val NORMAL_VERSION = 15
private const val NORMAL_VERSION_FILE_NAME = "format-version.txt"
fun localCacheVersionManager(dataRoot: Path, isCachesEnabled: Boolean) = CacheVersionManager(
dataRoot.resolve(NORMAL_VERSION_FILE_NAME),
if (isCachesEnabled) NORMAL_VERSION else null
)
|