Fix compatibility issues with Kotlin/Native commonization tasks during build and configuration cache
This commit is contained in:
parent
7635664dbc
commit
9451eb574f
@ -329,6 +329,15 @@ tasks.matching { it.name.startsWith("lint", ignoreCase = true) }.configureEach {
|
||||
this.enabled = false
|
||||
}
|
||||
|
||||
// Kotlin/Native commonization replaces intermediate .knm files while Gradle is
|
||||
// snapshotting this task's outputs, which can make publishing fail with a
|
||||
// FileNotFoundException. These files are generated intermediates, so tracking
|
||||
// their state provides no useful incremental-build benefit.
|
||||
tasks.matching { it.name == "commonizeCInterop" }.configureEach {
|
||||
doNotTrackState("Kotlin/Native commonizer mutates its output tree during execution")
|
||||
notCompatibleWithConfigurationCache("Kotlin/Native cinterop commonization accesses task projects during execution")
|
||||
}
|
||||
|
||||
publishing {
|
||||
val mavenToken by lazy {
|
||||
File("${System.getProperty("user.home")}/.gitea_token").readText()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user