Turn on Configuration Cache (#1733)

This commit is contained in:
Harsh Shandilya 2022-02-17 10:13:04 +05:30 committed by GitHub
parent c83ce48196
commit c9992a64fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 97 additions and 87 deletions

View file

@ -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 =