blob: e0ac2a980e41961b16271b627b2966438c3e8eec [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 Liutikasc0fef3a2021-10-12 15:07:05 -07009# Disabled due to https://github.com/gradle/gradle/issues/18626
10# org.gradle.vfs.watch=true
Jeff Gastondc9c8cb2023-02-08 16:24:38 -050011# 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)
12org.gradle.dependency.verification=off
Aurimas Liutikas3ae82fa2021-09-23 09:19:23 -070013org.gradle.dependency.verification.console=verbose
Aurimas Liutikasa3e119a2023-08-08 10:01:44 -070014org.gradle.configuration-cache=true
15org.gradle.configuration-cache.problems=fail
Aurimas Liutikas4e41da22023-12-13 15:38:28 -080016org.gradle.java.installations.auto-download=false
17org.gradle.java.installations.auto-detect=false
18org.gradle.java.installations.fromEnv=ANDROIDX_JDK17,ANDROIDX_JDK21
Aurimas Liutikasd1af4f62023-08-10 13:31:30 -070019
20# The following entries are workarounds
Aurimas Liutikasd1af4f62023-08-10 13:31:30 -070021# fullsdk-linux/**/package.xml -> b/291331139
omarismaile71eb7f2024-01-31 16:30:56 +000022org.gradle.configuration-cache.inputs.unsafe.ignore.file-system-checks=**/prebuilts/fullsdk-linux;**/prebuilts/fullsdk-linux/platforms/android-*/package.xml
Aurimas Liutikasac0e9fc2020-10-29 14:10:54 -070023
Aurimas Liutikasc9f24b22024-04-03 23:36:00 +000024android.javaCompile.suppressSourceTargetDeprecationWarning=true
Aurimas Liutikas02e5c922023-08-08 11:04:38 -070025android.lint.baselineOmitLineNumbers=true
Aurimas Liutikas113e3722023-05-24 13:41:42 -070026android.lint.printStackTrace=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
Alan Viveretteef1f3242023-06-12 17:02:13 -040037# Do generate versioned API files
38androidx.writeVersionedApiFiles=true
Aurimas Liutikas59d77d92020-03-27 17:29:44 -070039
Alan Viveretteef1f3242023-06-12 17:02:13 -040040# Do run the CheckAarMetadata task
41android.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 Viverette93ceb222023-05-02 15:25:55 -040044android.suppressUnsupportedCompileSdk=UpsideDownCake,VanillaIceCream,33,34
Alan Viverette75747922021-11-09 17:50:49 +000045
Omar Ismailf780db82024-04-11 16:00:49 -040046androidx.compileSdk=34
Alan Viverette7ef42b62023-06-26 11:04:08 -040047androidx.targetSdkVersion=34
Anton Kulakovfc6cb8d2023-10-26 16:23:48 +000048androidx.allowCustomCompileSdk=true
Alan Viverette3cc596b2024-02-14 14:22:04 -050049androidx.includeOptionalProjects=false
Alan Viverette7ef42b62023-06-26 11:04:08 -040050
Jim S1b465252024-03-08 16:08:44 -080051# Keep ComposeCompiler pinned unless performing Kotlin upgrade & ComposeCompiler release
Jim Sb1a8ca62024-03-28 11:17:11 -070052androidx.unpinComposeCompiler=true
Jim S1b465252024-03-08 16:08:44 -080053
Aurimas Liutikas59d77d92020-03-27 17:29:44 -070054# Disable features we do not use
55android.defaults.buildfeatures.aidl=false
56android.defaults.buildfeatures.buildconfig=false
57android.defaults.buildfeatures.renderscript=false
58android.defaults.buildfeatures.resvalues=false
Aurimas Liutikas33ebdb92020-08-17 08:53:12 -070059android.defaults.buildfeatures.shaders=false
60
Leland Richardsone368cec2021-06-04 15:45:31 -070061# Enable adding baseline-prof.txt files to AAR artifacts
Jeff Gaston62394412021-07-30 13:47:34 -040062android.experimental.enableArtProfiles=true
Aurimas Liutikas36de1fe2023-11-29 15:12:02 -080063# Disables dependency constraints for libraries (b/276714425)
64android.experimental.dependency.excludeLibraryComponentsFromConstraints=true
Jeff Gaston62394412021-07-30 13:47:34 -040065# Disallow resolving dependencies at configuration time, which is a slight performance problem
66android.dependencyResolutionAtConfigurationTime.disallow=true
Anton Kulakov77fe6852024-03-08 16:47:16 +000067android.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
Aurimas Liutikasab45dbe2021-08-11 10:26:22 -070068# Workaround for b/162074215
Jim Sproch666614b2021-08-18 07:43:56 -070069android.includeDependencyInfoInApks=false
Jeff Gaston5126dca2022-11-18 11:30:47 -050070# Allow multiple r8 tasks at once because otherwise they can make the critical path longer: b/256187923
71android.r8.maxWorkers=2
Jim Sproch666614b2021-08-18 07:43:56 -070072
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070073kotlin.stdlib.default.dependency=false
74# mac targets cannot be built on linux, suppress the warning.
75kotlin.native.ignoreDisabledTargets=true
Yigit Boyar56108c62024-05-03 12:01:08 -070076# Don't use maven for downloading native prebuilts: KT-64181 b/311215561
77# We should eventually set this to true and get rid of konan prebuilts
78# but it does not seem possible yet.
79kotlin.native.distribution.downloadFromMaven=false
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070080kotlin.mpp.enableCInteropCommonization=true
81# Suppress pointless warning about mpp being experimental
82kotlin.mpp.stability.nowarn=true
83# b/227307216
84kotlin.mpp.absentAndroidTarget.nowarn=true
Fred Sladkeybb6378e2023-08-17 21:22:44 -040085kotlin.mpp.androidSourceSetLayoutVersion=2
Andrei Shikovb4902f32023-08-12 05:14:30 +010086# Suppress warnings about https://kotl.in/hierarchy-template
87kotlin.mpp.applyDefaultHierarchyTemplate=false
Jim Sproch0507f652022-08-03 05:04:31 -070088# As of October 3 2022, AGP 7.4.0-alpha08 is higher than AGP 7.3
89# Presumably complains if using a non-stable AGP, which we are regularly doing to test pre-stable.
90kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
Jim Sprocha0fc8102022-12-06 15:28:12 -080091# Until we get a newer AGP which doesn't do this
92kotlin.options.suppressFreeCompilerArgsModificationWarning=true
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070093
Jim Sproch666614b2021-08-18 07:43:56 -070094# Properties we often want to toggle
Jim Sf0b820e02023-02-14 10:02:59 -080095ksp.version.check=false
Alan Viverettecf4546d2023-11-21 14:05:32 -050096
Anton Kulakov77fe6852024-03-08 16:47:16 +000097# Enable com.android.privacy-sandbox-sdk plugin
98android.experimental.privacysandboxsdk.plugin.enable=true
99# Allow non-shim usage
100android.experimental.privacysandboxsdk.requireServices=false
101
Alan Viverettecf4546d2023-11-21 14:05:32 -0500102# Annotation processors discovery from compile classpath is deprecated
103kapt.include.compile.classpath=false