80 lines
3.3 KiB
Properties
80 lines
3.3 KiB
Properties
org.gradle.parallel=true
|
|
org.gradle.configureondemand=false
|
|
org.gradle.caching=true
|
|
|
|
# Enable filesystem watching
|
|
org.gradle.vfs.watch=true
|
|
|
|
# Disable cache-fix version warning
|
|
systemProp.org.gradle.android.cache-fix.ignoreVersionCheck=true
|
|
|
|
# Enable experimental configuration caching
|
|
org.gradle.configuration-cache=true
|
|
org.gradle.configuration-cache.problems=warn
|
|
org.gradle.configuration-cache.max-problems=2
|
|
|
|
# Enable Kotlin incremental compilation
|
|
kotlin.incremental=true
|
|
|
|
# Kotlin code style
|
|
kotlin.code.style=official
|
|
|
|
# Enable incremental annotation processor for KAPT
|
|
kapt.incremental.apt=true
|
|
|
|
# Turn off AP discovery in compile path to enable compile avoidance
|
|
kapt.include.compile.classpath=false
|
|
|
|
# New incremental compilation for Kotlin
|
|
kotlin.incremental.useClasspathSnapshot=true
|
|
kotlin.build.report.output=file
|
|
|
|
# Enable AndroidX
|
|
android.useAndroidX=true
|
|
|
|
# Disable mostly unused default Android build features
|
|
android.defaults.buildfeatures.resvalues=false
|
|
android.defaults.buildfeatures.shaders=false
|
|
android.library.defaults.buildfeatures.androidresources=false
|
|
|
|
# Disallow resolution of dependencies at configuration time
|
|
android.dependencyResolutionAtConfigurationTime.disallow=true
|
|
|
|
# Disallow parsing the manifest too early in the build process
|
|
android.disableEarlyManifestParsing=true
|
|
|
|
# Prevent CI stalling during setup
|
|
android.experimental.testOptions.managedDevices.setupTimeoutMinutes=20
|
|
|
|
# Disable warnings about unsupported features
|
|
android.suppressUnsupportedOptionWarnings=android.dependencyResolutionAtConfigurationTime.disallow,android.disableEarlyManifestParsing,android.suppressUnsupportedOptionWarnings,,android.experimental.testOptions.managedDevices.setupTimeoutMinutes
|
|
|
|
# Add opens for KAPT
|
|
# https://youtrack.jetbrains.com/issue/KT-45545#focus=Comments-27-4862682.0-0
|
|
org.gradle.jvmargs=-Dfile.encoding=UTF-8 \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
|
|
|
|
kotlin.daemon.jvmargs=-Dfile.encoding=UTF-8 \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
|
|
|
|
# Make Spotless default to keeping license headers years in sync
|
|
spotlessSetLicenseHeaderYearsFromGitHistory=true
|