File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import org.gradle.api.file.RegularFileProperty
14
14
import org.gradle.api.tasks.*
15
15
16
16
@CacheableTask
17
- public open class KotlinApiCompareTask @Inject constructor() : DefaultTask() {
17
+ public open class KotlinApiCompareTask : DefaultTask () {
18
18
19
19
@get:InputFiles // don't fail the task if file does not exist, instead print custom error message from verify()
20
20
@get:PathSensitive(PathSensitivity .RELATIVE )
Original file line number Diff line number Diff line change @@ -8,14 +8,15 @@ package kotlinx.validation
8
8
import org.gradle.api.DefaultTask
9
9
import org.gradle.api.file.RegularFileProperty
10
10
import org.gradle.api.tasks.*
11
+ import org.gradle.work.DisableCachingByDefault
11
12
import java.nio.file.Files
12
13
import java.nio.file.StandardCopyOption
13
14
14
15
// Built-in Gradle's Copy/Sync tasks accepts only a destination directory (not a single file)
15
16
// and registers it as an output dependency. If there's another task reading from that particular
16
17
// directory or writing into it, their input/output dependencies would clash and as long as
17
18
// there will be no explicit ordering or dependencies between these tasks, Gradle would be unhappy.
18
- @CacheableTask
19
+ @DisableCachingByDefault(because = " No computations, only copying files " )
19
20
internal abstract class SyncFile : DefaultTask () {
20
21
@get:InputFiles
21
22
@get:PathSensitive(PathSensitivity .RELATIVE )
You can’t perform that action at this time.
0 commit comments