Change directory for sync task cache #KT-13732 fixed
This commit is contained in:
+12
-4
@@ -61,13 +61,21 @@ open class SyncOutputTask : DefaultTask() {
|
|||||||
private val sourceAnnotations: Set<String> by lazy {
|
private val sourceAnnotations: Set<String> by lazy {
|
||||||
kotlinTask.sourceAnnotationsRegistry?.annotations ?: emptySet()
|
kotlinTask.sourceAnnotationsRegistry?.annotations ?: emptySet()
|
||||||
}
|
}
|
||||||
private val annotationsRemover by lazy { AnnotationsRemover(sourceAnnotations) }
|
private val annotationsRemover by lazy {
|
||||||
|
AnnotationsRemover(sourceAnnotations)
|
||||||
|
}
|
||||||
|
|
||||||
// OutputDirectory needed for task to be incremental
|
// OutputDirectory needed for task to be incremental
|
||||||
@get:OutputDirectory
|
@get:OutputDirectory
|
||||||
val workingDir = File(project.buildDir, name).apply { mkdirs() }
|
val workingDir: File by lazy {
|
||||||
private val timestampsFile = File(workingDir, TIMESTAMP_FILE_NAME)
|
File(kotlinTask.taskBuildDirectory, "sync").apply { mkdirs() }
|
||||||
private val timestamps: MutableMap<File, Long> = readTimestamps(timestampsFile)
|
}
|
||||||
|
private val timestampsFile: File by lazy {
|
||||||
|
File(workingDir, TIMESTAMP_FILE_NAME)
|
||||||
|
}
|
||||||
|
private val timestamps: MutableMap<File, Long> by lazy {
|
||||||
|
readTimestamps(timestampsFile)
|
||||||
|
}
|
||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
@get:OutputFiles
|
@get:OutputFiles
|
||||||
|
|||||||
Reference in New Issue
Block a user