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") } }