From 68f04307ab8dd1a0d11f2dcb81d2684d304c489a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwiecin=CC=81ski?= Date: Fri, 3 Nov 2023 10:24:03 +0100 Subject: [PATCH] Remove deprecated `buildDir` usage --- .../project/starter/easylauncher/plugin/EasyLauncherPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easylauncher/src/main/kotlin/com/project/starter/easylauncher/plugin/EasyLauncherPlugin.kt b/easylauncher/src/main/kotlin/com/project/starter/easylauncher/plugin/EasyLauncherPlugin.kt index 7b8701d5..360a0128 100644 --- a/easylauncher/src/main/kotlin/com/project/starter/easylauncher/plugin/EasyLauncherPlugin.kt +++ b/easylauncher/src/main/kotlin/com/project/starter/easylauncher/plugin/EasyLauncherPlugin.kt @@ -130,7 +130,7 @@ class EasyLauncherPlugin : Plugin { .toCreate(com.android.build.gradle.internal.scope.InternalArtifactType.GENERATED_RES) } else { // legacy way to hook up the plugin - val generatedResDir = buildDir.resolve("generated/easylauncher/res/${variant.name}") + val generatedResDir = layout.buildDirectory.map { it.dir("generated/easylauncher/res/${variant.name}") } task.configure { it.outputDir.set(generatedResDir) } project.afterEvaluate { val android = extensions.getByName("android") as BaseExtension