在 Gradle 中为 kotlin 增量执行测试任务?
Make test task for kotlin incremental in Gradle?
我想让我的 test
任务递增,但我注意到它在 java
而不是 kotlin
中查找文件:
Task ':test' is not up-to-date because:
Task.upToDateWhen is false.
file or directory '/path/to/my/project/build/classes/java/test', not found
我启用了以下插件:
plugins {
kotlin("jvm") version "1.6.20"
kotlin("plugin.spring") version "1.6.20"
}
如何配置测试任务以获取 /path/to/my/project/build/classes/kotlin/test
而不是 java
?
看起来 IntelliJ IDEA 将 Task.upToDateWhen
设置为 false
。在控制台中它工作正常。
我想让我的 test
任务递增,但我注意到它在 java
而不是 kotlin
中查找文件:
Task ':test' is not up-to-date because:
Task.upToDateWhen is false.
file or directory '/path/to/my/project/build/classes/java/test', not found
我启用了以下插件:
plugins {
kotlin("jvm") version "1.6.20"
kotlin("plugin.spring") version "1.6.20"
}
如何配置测试任务以获取 /path/to/my/project/build/classes/kotlin/test
而不是 java
?
看起来 IntelliJ IDEA 将 Task.upToDateWhen
设置为 false
。在控制台中它工作正常。