From 6196d95dff0670a0f7a71476810ae6be5a6ff11e Mon Sep 17 00:00:00 2001 From: hongdongni <2607159984@qq.com> Date: Tue, 8 Feb 2022 14:01:23 +0800 Subject: [PATCH] Improve GRADLE build Performance --- .travis.yml | 28 +--------------------------- gradle.properties | 2 +- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/.travis.yml b/.travis.yml index a8b35fe5f..d239fa354 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,27 +1 @@ -language: android -addons: - artifacts: - debug: true - s3_region: "us-west-1" - paths: - - $(ls $TRAVIS_BUILD_DIR/*/build/outputs/lint-results-debug.html) -jdk: - - oraclejdk8 -android: - components: - - tools - - android-28 - - build-tools-28.0.3 - - platform-tools - - extra-google-google_play_services - - extra-google-m2repository - - extra-android-m2repository - - addon-google_apis-google-19 -before_cache: - - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ -cache: - directories: - - $HOME/.gradle/caches/ - - $HOME/.gradle/wrapper/ -script: ./gradlew assembleDebug checkstyle lintDebug lintKotlin check +[language: android, addons:, artifacts:, debug: true, s3_region: "us-west-1", paths:, - $(ls $TRAVIS_BUILD_DIR/*/build/outputs/lint-results-debug.html), jdk:, - oraclejdk8, android:, components:, - tools, - android-28, - build-tools-28.0.3, - platform-tools, - extra-google-google_play_services, - extra-google-m2repository, - extra-android-m2repository, - addon-google_apis-google-19, before_cache:, - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock, - rm -fr $HOME/.gradle/caches/*/plugin-resolution/, cache:, directories:, - $HOME/.gradle/caches/, - $HOME/.gradle/wrapper/, script: ./gradlew assembleDebug checkstyle lintDebug lintKotlin check] \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 21cece27c..23f5f8e4b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx2560m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryErro org.gradle.caching=true # https://github.com/gradle/kotlin-dsl/issues/311 -org.gradle.configureondemand=false +org.gradle.configureondemand=true android.builder.sdkDownload=true android.enableBuildCache=true