summaryrefslogtreecommitdiff
path: root/build-logic
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-02-17 10:13:04 +0530
committerGitHub <noreply@github.com>2022-02-17 04:43:04 +0000
commitc9992a64fc2ab1f137b08709b8090fab33fc5cf8 (patch)
tree5933e8d5a785841319795dce623fad9a6956aee4 /build-logic
parentc83ce481967a03a96a4717ed33c3d1643138c68e (diff)
Turn on Configuration Cache (#1733)
Diffstat (limited to 'build-logic')
-rw-r--r--build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt4
1 files changed, 2 insertions, 2 deletions
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<Project> {
override fun apply(project: Project) {
with(project) {
- val buildDirectory = layout.buildDirectory.asFile
+ val buildDirectory = layout.buildDirectory.asFile.get()
val extension = extensions.create<CrowdinExtension>("crowdin")
afterEvaluate {
val projectName = extension.projectName
@@ -55,7 +55,7 @@ class CrowdinDownloadPlugin : Plugin<Project> {
.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 =