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.> |
Aurimas Liutikas | dc4488a | 2023-06-15 22:14:40 +0000 | [diff] [blame] | 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 | 0ededfb | 2022-04-11 21:25:00 -0700 | [diff] [blame] | 25 | android.experimental.lint.missingBaselineIsEmptyBaseline=true |
Alan Viverette | d62a184 | 2021-01-28 15:08:55 -0500 | [diff] [blame] | 26 | |
Alan Viverette | ef1f324 | 2023-06-12 17:02:13 -0400 | [diff] [blame] | 27 | # Do generate versioned API files |
| 28 | androidx.writeVersionedApiFiles=true |
Aurimas Liutikas | 59d77d9 | 2020-03-27 17:29:44 -0700 | [diff] [blame] | 29 | |
Alan Viverette | ef1f324 | 2023-06-12 17:02:13 -0400 | [diff] [blame] | 30 | # Do run the CheckAarMetadata task |
| 31 | android.experimental.disableCompileSdkChecks=false |
Alan Viverette | 5cba57a | 2023-03-23 12:49:13 -0400 | [diff] [blame] | 32 | |
Alan Viverette | ef1f324 | 2023-06-12 17:02:13 -0400 | [diff] [blame] | 33 | # Do restrict custom SDK usage (e.g. Mainline) |
| 34 | androidx.allowCustomCompileSdk=false |
Alan Viverette | c9686d6 | 2022-11-15 14:31:39 -0500 | [diff] [blame] | 35 | |
Alan Viverette | 7574792 | 2021-11-09 17:50:49 +0000 | [diff] [blame] | 36 | # Don't warn about needing to update AGP |
Alan Viverette | 93ceb22 | 2023-05-02 15:25:55 -0400 | [diff] [blame] | 37 | android.suppressUnsupportedCompileSdk=UpsideDownCake,VanillaIceCream,33,34 |
Alan Viverette | 7574792 | 2021-11-09 17:50:49 +0000 | [diff] [blame] | 38 | |
Alan Viverette | 7ef42b6 | 2023-06-26 11:04:08 -0400 | [diff] [blame] | 39 | androidx.compileSdkVersion=android-34 |
| 40 | androidx.targetSdkVersion=34 |
| 41 | |
Aurimas Liutikas | 59d77d9 | 2020-03-27 17:29:44 -0700 | [diff] [blame] | 42 | # Disable features we do not use |
| 43 | android.defaults.buildfeatures.aidl=false |
| 44 | android.defaults.buildfeatures.buildconfig=false |
| 45 | android.defaults.buildfeatures.renderscript=false |
| 46 | android.defaults.buildfeatures.resvalues=false |
Aurimas Liutikas | 33ebdb9 | 2020-08-17 08:53:12 -0700 | [diff] [blame] | 47 | android.defaults.buildfeatures.shaders=false |
| 48 | |
Leland Richardson | e368cec | 2021-06-04 15:45:31 -0700 | [diff] [blame] | 49 | # Enable adding baseline-prof.txt files to AAR artifacts |
Jeff Gaston | 6239441 | 2021-07-30 13:47:34 -0400 | [diff] [blame] | 50 | android.experimental.enableArtProfiles=true |
| 51 | |
| 52 | # Disallow resolving dependencies at configuration time, which is a slight performance problem |
| 53 | android.dependencyResolutionAtConfigurationTime.disallow=true |
Aurimas Liutikas | 79f95b6 | 2023-06-27 15:49:21 -0700 | [diff] [blame] | 54 | android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.dependencyResolutionAtConfigurationTime.disallow,android.experimental.lint.missingBaselineIsEmptyBaseline,android.lint.printStackTrace,android.experimental.disableCompileSdkChecks,android.overrideVersionCheck,android.r8.maxWorkers |
Aurimas Liutikas | ab45dbe | 2021-08-11 10:26:22 -0700 | [diff] [blame] | 55 | # Workaround for b/162074215 |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 56 | android.includeDependencyInfoInApks=false |
Jeff Gaston | 5126dca | 2022-11-18 11:30:47 -0500 | [diff] [blame] | 57 | # Allow multiple r8 tasks at once because otherwise they can make the critical path longer: b/256187923 |
| 58 | android.r8.maxWorkers=2 |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 59 | |
Aurimas Liutikas | 84d086e | 2022-09-29 13:24:04 -0700 | [diff] [blame] | 60 | kotlin.stdlib.default.dependency=false |
| 61 | # mac targets cannot be built on linux, suppress the warning. |
| 62 | kotlin.native.ignoreDisabledTargets=true |
| 63 | kotlin.mpp.enableCInteropCommonization=true |
| 64 | # Suppress pointless warning about mpp being experimental |
| 65 | kotlin.mpp.stability.nowarn=true |
| 66 | # b/227307216 |
| 67 | kotlin.mpp.absentAndroidTarget.nowarn=true |
Jim Sproch | a0fc810 | 2022-12-06 15:28:12 -0800 | [diff] [blame] | 68 | # b/261241595 |
| 69 | kotlin.mpp.androidSourceSetLayoutVersion=1 |
| 70 | kotlin.mpp.androidSourceSetLayoutVersion1.nowarn=true |
Jim Sproch | 0507f65 | 2022-08-03 05:04:31 -0700 | [diff] [blame] | 71 | # As of October 3 2022, AGP 7.4.0-alpha08 is higher than AGP 7.3 |
| 72 | # Presumably complains if using a non-stable AGP, which we are regularly doing to test pre-stable. |
| 73 | kotlin.mpp.androidGradlePluginCompatibility.nowarn=true |
Jim Sproch | a0fc810 | 2022-12-06 15:28:12 -0800 | [diff] [blame] | 74 | # Until we get a newer AGP which doesn't do this |
| 75 | kotlin.options.suppressFreeCompilerArgsModificationWarning=true |
Aurimas Liutikas | 84d086e | 2022-09-29 13:24:04 -0700 | [diff] [blame] | 76 | |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 77 | # Properties we often want to toggle |
Jim S | f0b820e0 | 2023-02-14 10:02:59 -0800 | [diff] [blame] | 78 | ksp.version.check=false |