From a1c55faecf7c93aa230f96b838615bdfe6648b58 Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Fri, 15 Nov 2024 00:25:20 +0100 Subject: [PATCH] Build: migrate from the deprecated exec API --- build.gradle.kts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index f2c369c..1779a5f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 {