From c87473e8f1acea78973cf1e160c2f2421c8e7650 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Fri, 19 Aug 2022 22:30:27 +0200 Subject: [PATCH] Cache from settings. --- .drone.yml | 2 +- gradle.properties | 1 + settings.gradle.kts | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 22ee6bd..b401477 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,4 +18,4 @@ steps: - name: build image: mingc/android-build-box:latest commands: - - ./gradlew :androidApp:build -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" \ No newline at end of file + - ./gradlew :androidApp:build -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" -P pushCache=false \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 1a20457..1503398 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,3 +21,4 @@ kotlin.mpp.enableGranularSourceSetsMetadata=true org.gradle.parallel=true org.gradle.caching=true ignoreGitVersion=false +pushCache=true diff --git a/settings.gradle.kts b/settings.gradle.kts index 9c5b39a..4f3bcd9 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,4 +1,4 @@ -val pushCache = true +val pushCache: String by settings pluginManagement { repositories { @@ -14,7 +14,7 @@ buildCache { isAllowInsecureProtocol = true isAllowUntrustedServer = true isUseExpectContinue = true - isPush = pushCache + isPush = (pushCache == "true") } }