blob: ebd54e7cc9f4546ef8eb7c833885072fc61464da [file] [log] [blame]
Jeff Gaston8127c9a2023-05-16 16:28:35 -04001# TODO(https://github.com/spdx/spdx-gradle-plugin/issues/16) remove `-DSPDXParser.OnlyUseLocalLicenses=true`
Aurimas Liutikasef1dd0c2023-08-08 23:17:22 +00002org.gradle.jvmargs=-Xmx8g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true -Dorg.gradle.configuration-cache.internal.report-link-as-warning=true -DSPDXParser.OnlyUseLocalLicenses=true
Yigit Boyarf77697d2016-08-16 10:55:36 -07003org.gradle.daemon=true
Aurimas Liutikas59e5b6f92017-08-23 10:11:32 -07004org.gradle.configureondemand=true
Aurimas Liutikasa64f1ce2018-05-18 11:29:03 -07005org.gradle.parallel=true
Aurimas Liutikasd9950fa2018-05-23 03:08:26 +00006org.gradle.caching=true
Aurimas Liutikasb5a2e522022-04-22 14:18:27 -07007org.gradle.welcome=never
Aurimas Liutikas07c47d32023-08-03 15:46:39 -07008org.gradle.projectcachedir=../../out/gradle-project-cache
Aurimas Liutikasc7ebc6c2024-06-14 15:11:59 -07009# https://youtrack.jetbrains.com/issue/KT-58223
10kotlin.project.persistent.dir=./placeholder
Aurimas Liutikasc0fef3a2021-10-12 15:07:05 -070011# Disabled due to https://github.com/gradle/gradle/issues/18626
12# org.gradle.vfs.watch=true
Jeff Gastondc9c8cb2023-02-08 16:24:38 -050013# Reenabled in gradlew, but disabled in Studio until these errors become shown (b/268380971) or computed more quickly (https://github.com/gradle/gradle/issues/23272)
14org.gradle.dependency.verification=off
Aurimas Liutikas3ae82fa2021-09-23 09:19:23 -070015org.gradle.dependency.verification.console=verbose
Aurimas Liutikasa3e119a2023-08-08 10:01:44 -070016org.gradle.configuration-cache=true
17org.gradle.configuration-cache.problems=fail
Aurimas Liutikas4e41da22023-12-13 15:38:28 -080018org.gradle.java.installations.auto-download=false
19org.gradle.java.installations.auto-detect=false
20org.gradle.java.installations.fromEnv=ANDROIDX_JDK17,ANDROIDX_JDK21
Aurimas Liutikasd1af4f62023-08-10 13:31:30 -070021
Aurimas Liutikasc9f24b22024-04-03 23:36:00 +000022android.javaCompile.suppressSourceTargetDeprecationWarning=true
Aurimas Liutikas02e5c922023-08-08 11:04:38 -070023android.lint.baselineOmitLineNumbers=true
Aurimas Liutikas113e3722023-05-24 13:41:42 -070024android.lint.printStackTrace=true
Jinseong Jeon42e530c2024-07-11 13:39:25 -070025# b/271371556
26android.lint.useK2Uast=true
Aurimas Liutikas005dea02017-06-29 17:00:29 -070027android.builder.sdkDownload=false
Aurimas Liutikasecfb54822023-08-25 14:26:13 -070028android.uniquePackageNames=true
Dustin Lamf14ad352019-09-30 15:30:55 -070029android.enableAdditionalTestOutput=true
30android.useAndroidX=true
Aurimas Liutikas2b1a09c2021-05-18 16:45:30 -070031android.nonTransitiveRClass=true
Aurimas Liutikas0ededfb2022-04-11 21:25:00 -070032android.experimental.lint.missingBaselineIsEmptyBaseline=true
Scott Pollomc801d4e2023-08-29 23:16:23 +000033android.experimental.lint.reservedMemoryPerTask=1g
Aurimas Liutikas2f357cb2024-02-20 16:33:34 -080034# Remove when AGP defaults to 2.1.0
35android.prefabVersion=2.1.0
Alan Viveretted62a1842021-01-28 15:08:55 -050036
37# Don't generate versioned API files
Andrea Falcone0db31002024-07-19 20:38:40 +000038androidx.writeVersionedApiFiles=true
Aurimas Liutikas59d77d92020-03-27 17:29:44 -070039
Alan Viverette5cba57a2023-03-23 12:49:13 -040040# Don't run the CheckAarMetadata task
Aurimas Liutikasd2365a22024-07-19 12:46:56 -070041android.experimental.disableCompileSdkChecks=false
Alan Viverette5cba57a2023-03-23 12:49:13 -040042
Alan Viverette75747922021-11-09 17:50:49 +000043# Don't warn about needing to update AGP
Alan Viverette5dc41be2024-05-30 15:46:24 -040044android.suppressUnsupportedCompileSdk=35
Alan Viverette75747922021-11-09 17:50:49 +000045
Omar Ismailf780db82024-04-11 16:00:49 -040046androidx.compileSdk=34
Aurimas Liutikas477fedb2024-08-16 10:32:35 -070047androidx.latestStableCompileSdk=35
Alan Viverette7ef42b62023-06-26 11:04:08 -040048androidx.targetSdkVersion=34
Anton Kulakovf05d1b42023-10-26 21:35:42 +000049androidx.allowCustomCompileSdk=true
Andrea Falcone0db31002024-07-19 20:38:40 +000050androidx.includeOptionalProjects=false
Alan Viverette7ef42b62023-06-26 11:04:08 -040051
Aurimas Liutikas59d77d92020-03-27 17:29:44 -070052# Disable features we do not use
53android.defaults.buildfeatures.aidl=false
54android.defaults.buildfeatures.buildconfig=false
55android.defaults.buildfeatures.renderscript=false
56android.defaults.buildfeatures.resvalues=false
Aurimas Liutikas33ebdb92020-08-17 08:53:12 -070057android.defaults.buildfeatures.shaders=false
58
Leland Richardsone368cec2021-06-04 15:45:31 -070059# Enable adding baseline-prof.txt files to AAR artifacts
Jeff Gaston62394412021-07-30 13:47:34 -040060android.experimental.enableArtProfiles=true
Aurimas Liutikas36de1fe2023-11-29 15:12:02 -080061# Disables dependency constraints for libraries (b/276714425)
62android.experimental.dependency.excludeLibraryComponentsFromConstraints=true
Jeff Gaston62394412021-07-30 13:47:34 -040063# Disallow resolving dependencies at configuration time, which is a slight performance problem
64android.dependencyResolutionAtConfigurationTime.disallow=true
Aurimas Liutikas31070042024-07-22 23:43:46 +000065android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.dependencyResolutionAtConfigurationTime.disallow,android.experimental.lint.missingBaselineIsEmptyBaseline,android.lint.printStackTrace,android.lint.baselineOmitLineNumbers,android.experimental.disableCompileSdkChecks,android.overrideVersionCheck,android.r8.maxWorkers,android.experimental.lint.reservedMemoryPerTask,android.experimental.dependency.excludeLibraryComponentsFromConstraints,android.prefabVersion,android.experimental.privacysandboxsdk.plugin.enable,android.experimental.privacysandboxsdk.requireServices,android.lint.useK2Uast
Aurimas Liutikasab45dbe2021-08-11 10:26:22 -070066# Workaround for b/162074215
Jim Sproch666614b2021-08-18 07:43:56 -070067android.includeDependencyInfoInApks=false
Jeff Gaston5126dca2022-11-18 11:30:47 -050068# Allow multiple r8 tasks at once because otherwise they can make the critical path longer: b/256187923
69android.r8.maxWorkers=2
Jim Sproch666614b2021-08-18 07:43:56 -070070
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070071kotlin.stdlib.default.dependency=false
72# mac targets cannot be built on linux, suppress the warning.
73kotlin.native.ignoreDisabledTargets=true
Yigit Boyar56108c62024-05-03 12:01:08 -070074# Don't use maven for downloading native prebuilts: KT-64181 b/311215561
75# We should eventually set this to true and get rid of konan prebuilts
76# but it does not seem possible yet.
77kotlin.native.distribution.downloadFromMaven=false
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070078kotlin.mpp.enableCInteropCommonization=true
79# Suppress pointless warning about mpp being experimental
80kotlin.mpp.stability.nowarn=true
81# b/227307216
82kotlin.mpp.absentAndroidTarget.nowarn=true
Fred Sladkeybb6378e2023-08-17 21:22:44 -040083kotlin.mpp.androidSourceSetLayoutVersion=2
Andrei Shikovb4902f32023-08-12 05:14:30 +010084# Suppress warnings about https://kotl.in/hierarchy-template
85kotlin.mpp.applyDefaultHierarchyTemplate=false
Jim Sproch0507f652022-08-03 05:04:31 -070086# As of October 3 2022, AGP 7.4.0-alpha08 is higher than AGP 7.3
87# Presumably complains if using a non-stable AGP, which we are regularly doing to test pre-stable.
88kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
Jim Sprocha0fc8102022-12-06 15:28:12 -080089# Until we get a newer AGP which doesn't do this
90kotlin.options.suppressFreeCompilerArgsModificationWarning=true
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070091
Jim Sproch666614b2021-08-18 07:43:56 -070092# Properties we often want to toggle
Jim Sf0b820e02023-02-14 10:02:59 -080093ksp.version.check=false
Alan Viverettecf4546d2023-11-21 14:05:32 -050094
Anton Kulakov77fe6852024-03-08 16:47:16 +000095# Enable com.android.privacy-sandbox-sdk plugin
96android.experimental.privacysandboxsdk.plugin.enable=true
97# Allow non-shim usage
98android.experimental.privacysandboxsdk.requireServices=false
99
Alan Viverettecf4546d2023-11-21 14:05:32 -0500100# Annotation processors discovery from compile classpath is deprecated
101kapt.include.compile.classpath=false
Radha Nakade30fa6952024-05-20 20:18:34 -0700102
Radha Nakade7b6f7c72024-06-21 15:32:58 -0700103# Disable dependency analysis compatibility check
Aurimas Liutikase1ecd452024-06-04 18:17:30 -0700104dependency.analysis.compatibility=NONE
Shalom Giblyeb74b1a2024-07-10 17:09:02 -0700105
106# Preserve the test APKs after a test run
107android.injected.androidTest.leaveApksInstalledAfterRun=true
Omar Ismail9312a762024-07-12 17:01:42 +0100108
109# Fetch yarn packages from an offline mirror by default
110androidx.yarnOfflineMode=true
111
112# Remove when https://youtrack.jetbrains.com/issue/KT-70013 is fixed
113org.gradle.configuration-cache.inputs.unsafe.ignore.file-system-checks=**/out/.gradle/nodejs;**/out/.gradle/yarn