Skip to content

Commit

Permalink
Build: migrate from the deprecated exec API
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Nov 14, 2024
1 parent 28a12ef commit a1c55fa
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,10 @@ tasks {
dependsOn(rdGen, generateDotNetSdkProperties, generateNuGetConfig)
}

val compileDotNet by registering {
val compileDotNet by registering(Exec::class) {
dependsOn(rdGen, generateDotNetSdkProperties, generateNuGetConfig)
doLast {
exec {
executable("dotnet")
args("build", "-c", buildConfiguration)
}
}
executable("dotnet")
args("build", "-c", buildConfiguration)
}

withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
Expand Down

0 comments on commit a1c55fa

Please sign in to comment.