Jeff Gaston | 8127c9a | 2023-05-16 16:28:35 -0400 | [diff] [blame] | 1 | # TODO(https://github.com/spdx/spdx-gradle-plugin/issues/16) remove `-DSPDXParser.OnlyUseLocalLicenses=true` |
| 2 | org.gradle.jvmargs=-Xmx8g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true -Dorg.gradle.configuration-cache.internal.load-after-store=false -DSPDXParser.OnlyUseLocalLicenses=true |
Yigit Boyar | f77697d | 2016-08-16 10:55:36 -0700 | [diff] [blame] | 3 | org.gradle.daemon=true |
Aurimas Liutikas | 59e5b6f9 | 2017-08-23 10:11:32 -0700 | [diff] [blame] | 4 | org.gradle.configureondemand=true |
Aurimas Liutikas | a64f1ce | 2018-05-18 11:29:03 -0700 | [diff] [blame] | 5 | org.gradle.parallel=true |
Aurimas Liutikas | d9950fa | 2018-05-23 03:08:26 +0000 | [diff] [blame] | 6 | org.gradle.caching=true |
Aurimas Liutikas | b5a2e52 | 2022-04-22 14:18:27 -0700 | [diff] [blame] | 7 | org.gradle.welcome=never |
Aurimas Liutikas | c0fef3a | 2021-10-12 15:07:05 -0700 | [diff] [blame] | 8 | # Disabled due to https://github.com/gradle/gradle/issues/18626 |
| 9 | # org.gradle.vfs.watch=true |
Jeff Gaston | dc9c8cb | 2023-02-08 16:24:38 -0500 | [diff] [blame] | 10 | # 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) |
| 11 | org.gradle.dependency.verification=off |
Aurimas Liutikas | 3ae82fa | 2021-09-23 09:19:23 -0700 | [diff] [blame] | 12 | org.gradle.dependency.verification.console=verbose |
Jeff Gaston | 96eb601 | 2021-09-27 14:55:36 +0000 | [diff] [blame] | 13 | org.gradle.unsafe.configuration-cache=true |
| 14 | org.gradle.unsafe.configuration-cache-problems=warn |
| 15 | org.gradle.unsafe.configuration-cache.max-problems=4000 |
Aurimas Liutikas | ac0e9fc | 2020-10-29 14:10:54 -0700 | [diff] [blame] | 16 | |
Aurimas Liutikas | 113e372 | 2023-05-24 13:41:42 -0700 | [diff] [blame] | 17 | android.lint.printStackTrace=true |
Aurimas Liutikas | 005dea0 | 2017-06-29 17:00:29 -0700 | [diff] [blame] | 18 | android.builder.sdkDownload=false |
Aurimas Liutikas | 28514e22 | 2020-06-01 16:20:08 +0000 | [diff] [blame] | 19 | android.uniquePackageNames=false |
Dustin Lam | f14ad35 | 2019-09-30 15:30:55 -0700 | [diff] [blame] | 20 | android.enableAdditionalTestOutput=true |
| 21 | android.useAndroidX=true |
Aurimas Liutikas | 2b1a09c | 2021-05-18 16:45:30 -0700 | [diff] [blame] | 22 | android.nonTransitiveRClass=true |
Chris Warrington | 2e38a61 | 2022-11-25 18:07:04 +0000 | [diff] [blame] | 23 | # Pending cleanup to support non-constant R class IDs b/260409846 |
| 24 | android.nonFinalResIds=false |
Aurimas Liutikas | a737b42 | 2019-12-10 16:35:38 -0800 | [diff] [blame] | 25 | # Workaround for b/141364941 |
Aurimas Liutikas | d4fcb1c | 2019-12-17 15:50:11 -0800 | [diff] [blame] | 26 | android.forceJacocoOutOfProcess=true |
Aurimas Liutikas | 0ededfb | 2022-04-11 21:25:00 -0700 | [diff] [blame] | 27 | android.experimental.lint.missingBaselineIsEmptyBaseline=true |
Alan Viverette | d62a184 | 2021-01-28 15:08:55 -0500 | [diff] [blame] | 28 | |
Alan Viverette | ef1f324 | 2023-06-12 17:02:13 -0400 | [diff] [blame^] | 29 | # Do generate versioned API files |
| 30 | androidx.writeVersionedApiFiles=true |
Aurimas Liutikas | 59d77d9 | 2020-03-27 17:29:44 -0700 | [diff] [blame] | 31 | |
Alan Viverette | ef1f324 | 2023-06-12 17:02:13 -0400 | [diff] [blame^] | 32 | # Do run the CheckAarMetadata task |
| 33 | android.experimental.disableCompileSdkChecks=false |
Alan Viverette | 5cba57a | 2023-03-23 12:49:13 -0400 | [diff] [blame] | 34 | |
Alan Viverette | ef1f324 | 2023-06-12 17:02:13 -0400 | [diff] [blame^] | 35 | # Do restrict custom SDK usage (e.g. Mainline) |
| 36 | androidx.allowCustomCompileSdk=false |
Alan Viverette | c9686d6 | 2022-11-15 14:31:39 -0500 | [diff] [blame] | 37 | |
Alan Viverette | 7574792 | 2021-11-09 17:50:49 +0000 | [diff] [blame] | 38 | # Don't warn about needing to update AGP |
Alan Viverette | 93ceb22 | 2023-05-02 15:25:55 -0400 | [diff] [blame] | 39 | android.suppressUnsupportedCompileSdk=UpsideDownCake,VanillaIceCream,33,34 |
Alan Viverette | 7574792 | 2021-11-09 17:50:49 +0000 | [diff] [blame] | 40 | |
Aurimas Liutikas | 59d77d9 | 2020-03-27 17:29:44 -0700 | [diff] [blame] | 41 | # Disable features we do not use |
| 42 | android.defaults.buildfeatures.aidl=false |
| 43 | android.defaults.buildfeatures.buildconfig=false |
| 44 | android.defaults.buildfeatures.renderscript=false |
| 45 | android.defaults.buildfeatures.resvalues=false |
Aurimas Liutikas | 33ebdb9 | 2020-08-17 08:53:12 -0700 | [diff] [blame] | 46 | android.defaults.buildfeatures.shaders=false |
| 47 | |
Leland Richardson | e368cec | 2021-06-04 15:45:31 -0700 | [diff] [blame] | 48 | # Enable adding baseline-prof.txt files to AAR artifacts |
Jeff Gaston | 6239441 | 2021-07-30 13:47:34 -0400 | [diff] [blame] | 49 | android.experimental.enableArtProfiles=true |
| 50 | |
| 51 | # Disallow resolving dependencies at configuration time, which is a slight performance problem |
| 52 | android.dependencyResolutionAtConfigurationTime.disallow=true |
Aurimas Liutikas | 113e372 | 2023-05-24 13:41:42 -0700 | [diff] [blame] | 53 | android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.dependencyResolutionAtConfigurationTime.disallow,android.experimental.lint.missingBaselineIsEmptyBaseline,android.experimental.lint.version,android.lint.printStackTrace |
Aurimas Liutikas | ab45dbe | 2021-08-11 10:26:22 -0700 | [diff] [blame] | 54 | # Workaround for b/162074215 |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 55 | android.includeDependencyInfoInApks=false |
Jeff Gaston | 5126dca | 2022-11-18 11:30:47 -0500 | [diff] [blame] | 56 | # Allow multiple r8 tasks at once because otherwise they can make the critical path longer: b/256187923 |
| 57 | android.r8.maxWorkers=2 |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 58 | |
Aurimas Liutikas | 84d086e | 2022-09-29 13:24:04 -0700 | [diff] [blame] | 59 | kotlin.stdlib.default.dependency=false |
| 60 | # mac targets cannot be built on linux, suppress the warning. |
| 61 | kotlin.native.ignoreDisabledTargets=true |
| 62 | kotlin.mpp.enableCInteropCommonization=true |
| 63 | # Suppress pointless warning about mpp being experimental |
| 64 | kotlin.mpp.stability.nowarn=true |
| 65 | # b/227307216 |
| 66 | kotlin.mpp.absentAndroidTarget.nowarn=true |
Jim Sproch | a0fc810 | 2022-12-06 15:28:12 -0800 | [diff] [blame] | 67 | # b/261241595 |
| 68 | kotlin.mpp.androidSourceSetLayoutVersion=1 |
| 69 | kotlin.mpp.androidSourceSetLayoutVersion1.nowarn=true |
Jim Sproch | 0507f65 | 2022-08-03 05:04:31 -0700 | [diff] [blame] | 70 | # As of October 3 2022, AGP 7.4.0-alpha08 is higher than AGP 7.3 |
| 71 | # Presumably complains if using a non-stable AGP, which we are regularly doing to test pre-stable. |
| 72 | kotlin.mpp.androidGradlePluginCompatibility.nowarn=true |
Jim Sproch | a0fc810 | 2022-12-06 15:28:12 -0800 | [diff] [blame] | 73 | # Until we get a newer AGP which doesn't do this |
| 74 | kotlin.options.suppressFreeCompilerArgsModificationWarning=true |
Aurimas Liutikas | 84d086e | 2022-09-29 13:24:04 -0700 | [diff] [blame] | 75 | |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 76 | # Properties we often want to toggle |
Jim S | f0b820e0 | 2023-02-14 10:02:59 -0800 | [diff] [blame] | 77 | ksp.version.check=false |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 78 | # androidx.compose.multiplatformEnabled=true |