[go: nahoru, domu]

blob: d75bd18a0f25654d7c9ba5aa57e6f7e5e1cd7139 [file] [log] [blame]
Jeff Gaston8127c9a2023-05-16 16:28:35 -04001# TODO(https://github.com/spdx/spdx-gradle-plugin/issues/16) remove `-DSPDXParser.>
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
Aurimas Liutikasc9f24b22024-04-03 23:36:00 +000020android.javaCompile.suppressSourceTargetDeprecationWarning=true
Aurimas Liutikas02e5c922023-08-08 11:04:38 -070021android.lint.baselineOmitLineNumbers=true
Aurimas Liutikas113e3722023-05-24 13:41:42 -070022android.lint.printStackTrace=true
Aurimas Liutikas005dea02017-06-29 17:00:29 -070023android.builder.sdkDownload=false
Aurimas Liutikasecfb5482023-08-25 14:26:13 -070024android.uniquePackageNames=true
Dustin Lamf14ad352019-09-30 15:30:55 -070025android.enableAdditionalTestOutput=true
26android.useAndroidX=true
Aurimas Liutikas2b1a09c2021-05-18 16:45:30 -070027android.nonTransitiveRClass=true
Aurimas Liutikas0ededfb2022-04-11 21:25:00 -070028android.experimental.lint.missingBaselineIsEmptyBaseline=true
Scott Pollomc801d4e2023-08-29 23:16:23 +000029android.experimental.lint.reservedMemoryPerTask=1g
Aurimas Liutikas2f357cb2024-02-20 16:33:34 -080030# Remove when AGP defaults to 2.1.0
31android.prefabVersion=2.1.0
Alan Viveretted62a1842021-01-28 15:08:55 -050032
Alan Viveretteef1f3242023-06-12 17:02:13 -040033# Do generate versioned API files
34androidx.writeVersionedApiFiles=true
Aurimas Liutikas59d77d92020-03-27 17:29:44 -070035
Alan Viveretteef1f3242023-06-12 17:02:13 -040036# Do run the CheckAarMetadata task
37android.experimental.disableCompileSdkChecks=false
Alan Viverette5cba57a2023-03-23 12:49:13 -040038
Alan Viverette75747922021-11-09 17:50:49 +000039# Don't warn about needing to update AGP
Alan Viverette93ceb222023-05-02 15:25:55 -040040android.suppressUnsupportedCompileSdk=UpsideDownCake,VanillaIceCream,33,34
Alan Viverette75747922021-11-09 17:50:49 +000041
Omar Ismailf780db82024-04-11 16:00:49 -040042androidx.compileSdk=34
Alan Viverette7ef42b62023-06-26 11:04:08 -040043androidx.targetSdkVersion=34
Anton Kulakovfc6cb8d2023-10-26 16:23:48 +000044androidx.allowCustomCompileSdk=true
Alan Viverette3cc596b2024-02-14 14:22:04 -050045androidx.includeOptionalProjects=false
Alan Viverette7ef42b62023-06-26 11:04:08 -040046
Aurimas Liutikas59d77d92020-03-27 17:29:44 -070047# Disable features we do not use
48android.defaults.buildfeatures.aidl=false
49android.defaults.buildfeatures.buildconfig=false
50android.defaults.buildfeatures.renderscript=false
51android.defaults.buildfeatures.resvalues=false
Aurimas Liutikas33ebdb92020-08-17 08:53:12 -070052android.defaults.buildfeatures.shaders=false
53
Leland Richardsone368cec2021-06-04 15:45:31 -070054# Enable adding baseline-prof.txt files to AAR artifacts
Jeff Gaston62394412021-07-30 13:47:34 -040055android.experimental.enableArtProfiles=true
Aurimas Liutikas36de1fe2023-11-29 15:12:02 -080056# Disables dependency constraints for libraries (b/276714425)
57android.experimental.dependency.excludeLibraryComponentsFromConstraints=true
Jeff Gaston62394412021-07-30 13:47:34 -040058# Disallow resolving dependencies at configuration time, which is a slight performance problem
59android.dependencyResolutionAtConfigurationTime.disallow=true
Anton Kulakov77fe6852024-03-08 16:47:16 +000060android.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 -070061# Workaround for b/162074215
Jim Sproch666614b2021-08-18 07:43:56 -070062android.includeDependencyInfoInApks=false
Jeff Gaston5126dca2022-11-18 11:30:47 -050063# Allow multiple r8 tasks at once because otherwise they can make the critical path longer: b/256187923
64android.r8.maxWorkers=2
Jim Sproch666614b2021-08-18 07:43:56 -070065
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070066kotlin.stdlib.default.dependency=false
67# mac targets cannot be built on linux, suppress the warning.
68kotlin.native.ignoreDisabledTargets=true
Yigit Boyar56108c62024-05-03 12:01:08 -070069# Don't use maven for downloading native prebuilts: KT-64181 b/311215561
70# We should eventually set this to true and get rid of konan prebuilts
71# but it does not seem possible yet.
72kotlin.native.distribution.downloadFromMaven=false
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070073kotlin.mpp.enableCInteropCommonization=true
74# Suppress pointless warning about mpp being experimental
75kotlin.mpp.stability.nowarn=true
76# b/227307216
77kotlin.mpp.absentAndroidTarget.nowarn=true
Fred Sladkeybb6378e2023-08-17 21:22:44 -040078kotlin.mpp.androidSourceSetLayoutVersion=2
Andrei Shikovb4902f32023-08-12 05:14:30 +010079# Suppress warnings about https://kotl.in/hierarchy-template
80kotlin.mpp.applyDefaultHierarchyTemplate=false
Jim Sproch0507f652022-08-03 05:04:31 -070081# As of October 3 2022, AGP 7.4.0-alpha08 is higher than AGP 7.3
82# Presumably complains if using a non-stable AGP, which we are regularly doing to test pre-stable.
83kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
Jim Sprocha0fc8102022-12-06 15:28:12 -080084# Until we get a newer AGP which doesn't do this
85kotlin.options.suppressFreeCompilerArgsModificationWarning=true
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070086
Jim Sproch666614b2021-08-18 07:43:56 -070087# Properties we often want to toggle
Jim Sf0b820e02023-02-14 10:02:59 -080088ksp.version.check=false
Alan Viverettecf4546d2023-11-21 14:05:32 -050089
Anton Kulakov77fe6852024-03-08 16:47:16 +000090# Enable com.android.privacy-sandbox-sdk plugin
91android.experimental.privacysandboxsdk.plugin.enable=true
92# Allow non-shim usage
93android.experimental.privacysandboxsdk.requireServices=false
94
Alan Viverettecf4546d2023-11-21 14:05:32 -050095# Annotation processors discovery from compile classpath is deprecated
96kapt.include.compile.classpath=false
Radha Nakade30fa6952024-05-20 20:18:34 -070097
98# Disable dependency analysis on test sources
99systemProp.dependency.analysis.test.analysis=false
Aurimas Liutikase1ecd452024-06-04 18:17:30 -0700100dependency.analysis.compatibility=NONE