Skip to content

Commit

Permalink
Improve GRADLE build Performance
Browse files Browse the repository at this point in the history
  • Loading branch information
hongdongni committed Feb 8, 2022
1 parent fbfd9e2 commit 6196d95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
28 changes: 1 addition & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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]
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6196d95

Please sign in to comment.