diff --git a/.travis.yml b/.travis.yml index fe0f5a412..f200ed826 100644 --- a/.travis.yml +++ b/.travis.yml @@ -72,7 +72,7 @@ before_script: - test -f twidere/src/google/AndroidManifest.xml script: - - ./gradlew -Pandroid.incrementalJavaCompile=false clean build + - ./gradlew clean build deploy: provider: releases diff --git a/build.gradle b/build.gradle index 78194c3fd..8cdffb1e8 100644 --- a/build.gradle +++ b/build.gradle @@ -76,6 +76,12 @@ subprojects { exclude 'META-INF/ASL2.0' } + if (System.getenv('TRAVIS') == 'true') { + compileOptions { + incremental = false + } + } + if (android.hasProperty('buildTypes') && project.plugins.hasPlugin('com.android.application')) { android.buildTypes.each { buildType -> def file = rootProject.file('private/signing.properties')