From c9992a64fc2ab1f137b08709b8090fab33fc5cf8 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 17 Feb 2022 10:13:04 +0530 Subject: Turn on Configuration Cache (#1733) --- .../automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build-logic') diff --git a/build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt b/build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt index 38ca6700..9152aff4 100644 --- a/build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt +++ b/build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt @@ -28,7 +28,7 @@ class CrowdinDownloadPlugin : Plugin { override fun apply(project: Project) { with(project) { - val buildDirectory = layout.buildDirectory.asFile + val buildDirectory = layout.buildDirectory.asFile.get() val extension = extensions.create("crowdin") afterEvaluate { val projectName = extension.projectName @@ -55,7 +55,7 @@ class CrowdinDownloadPlugin : Plugin { .build() val url = CROWDIN_BUILD_API_URL.format(projectName, login.get(), key.get()) val request = Request.Builder().url(url).get().build() - client.newCall(request).execute() + client.newCall(request).execute().close() } } val downloadCrowdin = -- cgit v1.2.3