[Build] Migrate most of the build logic from Project.buildDir usage
It's going to be deprecated in Gradle 8.3 There's currently no way to pass a `org.gradle.api.provider.Provider` to the JavaExec.systemProperty or Test.systemProperty. There's a workaround using `org.gradle.process.CommandLineArgumentProvider`, but I intentionally don't rework these calls as Gradle is going to allow passing providers to configure system properties: https://github.com/gradle/gradle/issues/12247#issuecomment-1568427242 ^KTI-1473 In Progress
This commit is contained in:
committed by
Space Team
parent
b784544f8d
commit
a19bd2ed2e
@@ -455,7 +455,7 @@ targetList.each { target ->
|
||||
|
||||
destinationDir project.file("$distDir/klib/cache/")
|
||||
|
||||
from("${project(":kotlin-native:runtime").buildDir}/cache/$target") {
|
||||
from(project(":kotlin-native:runtime").layout.buildDirectory.dir("cache/$target")) {
|
||||
include('**')
|
||||
}
|
||||
}
|
||||
@@ -747,7 +747,7 @@ tasks.named("clean", Delete) {
|
||||
dependsOn subprojects.collect { it.tasks.matching { it.name == "clean" } }
|
||||
doFirst {
|
||||
delete distDir
|
||||
delete buildDir
|
||||
delete layout.buildDirectory
|
||||
delete bundle.outputs.files
|
||||
delete "${projectDir}/compile_commands.json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user