From f04dcc3bd1d0b87b068bdf232e479a69a349c916 Mon Sep 17 00:00:00 2001 From: Florian Wendland Date: Wed, 6 Mar 2024 15:25:08 +0100 Subject: [PATCH] Fix deprecated Gradle features (#825) --- build.gradle.kts | 4 ++-- buildSrc/src/main/kotlin/module.gradle.kts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 6e23712e4..1151e976d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -47,7 +47,7 @@ val projectProps by tasks.registering(WriteProperties::class) { description = "Write project properties in a file." // Set output file to build/project.properties - outputFile = file("$buildDir/codyze.properties") + destinationFile = layout.buildDirectory.file("codyze.properties") // Default encoding is ISO-8559-1, here we change it. encoding = "UTF-8" // Optionally we can specify the header comment. @@ -62,7 +62,7 @@ val projectProps by tasks.registering(WriteProperties::class) { } } -// configure detekt to combine the results of all submodules into a single sarif file -> for github code scanning +// configure detekt to combine the results of all submodules into a single sarif file -> for GitHub code scanning val detektReportMergeSarif by tasks.registering(ReportMergeTask::class) { output.set(rootProject.layout.buildDirectory.file("reports/detekt/detekt.sarif")) } diff --git a/buildSrc/src/main/kotlin/module.gradle.kts b/buildSrc/src/main/kotlin/module.gradle.kts index db8c34f0e..f2d3cd753 100644 --- a/buildSrc/src/main/kotlin/module.gradle.kts +++ b/buildSrc/src/main/kotlin/module.gradle.kts @@ -17,6 +17,7 @@ dependencies { // Unit tests testImplementation(kotlin("test")) testImplementation(libs.junit.params) + testRuntimeOnly("org.junit.platform:junit-platform-launcher") } repositories {