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` |
Aurimas Liutikas | ef1dd0c | 2023-08-08 23:17:22 +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.report-link-as-warning=true -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 | 07c47d3 | 2023-08-03 15:46:39 -0700 | [diff] [blame] | 8 | org.gradle.projectcachedir=../../out/gradle-project-cache |
Aurimas Liutikas | c0fef3a | 2021-10-12 15:07:05 -0700 | [diff] [blame] | 9 | # Disabled due to https://github.com/gradle/gradle/issues/18626 |
| 10 | # org.gradle.vfs.watch=true |
Jeff Gaston | dc9c8cb | 2023-02-08 16:24:38 -0500 | [diff] [blame] | 11 | # 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) |
| 12 | org.gradle.dependency.verification=off |
Aurimas Liutikas | 3ae82fa | 2021-09-23 09:19:23 -0700 | [diff] [blame] | 13 | org.gradle.dependency.verification.console=verbose |
Aurimas Liutikas | a3e119a | 2023-08-08 10:01:44 -0700 | [diff] [blame] | 14 | org.gradle.configuration-cache=true |
| 15 | org.gradle.configuration-cache.problems=fail |
Aurimas Liutikas | 4e41da2 | 2023-12-13 15:38:28 -0800 | [diff] [blame] | 16 | org.gradle.java.installations.auto-download=false |
| 17 | org.gradle.java.installations.auto-detect=false |
| 18 | org.gradle.java.installations.fromEnv=ANDROIDX_JDK17,ANDROIDX_JDK21 |
Aurimas Liutikas | d1af4f6 | 2023-08-10 13:31:30 -0700 | [diff] [blame] | 19 | |
Aurimas Liutikas | c9f24b2 | 2024-04-03 23:36:00 +0000 | [diff] [blame] | 20 | android.javaCompile.suppressSourceTargetDeprecationWarning=true |
Aurimas Liutikas | 02e5c92 | 2023-08-08 11:04:38 -0700 | [diff] [blame] | 21 | android.lint.baselineOmitLineNumbers=true |
Aurimas Liutikas | 113e372 | 2023-05-24 13:41:42 -0700 | [diff] [blame] | 22 | android.lint.printStackTrace=true |
Aurimas Liutikas | 005dea0 | 2017-06-29 17:00:29 -0700 | [diff] [blame] | 23 | android.builder.sdkDownload=false |
Aurimas Liutikas | ecfb548 | 2023-08-25 14:26:13 -0700 | [diff] [blame] | 24 | android.uniquePackageNames=true |
Dustin Lam | f14ad35 | 2019-09-30 15:30:55 -0700 | [diff] [blame] | 25 | android.enableAdditionalTestOutput=true |
| 26 | android.useAndroidX=true |
Aurimas Liutikas | 2b1a09c | 2021-05-18 16:45:30 -0700 | [diff] [blame] | 27 | android.nonTransitiveRClass=true |
Aurimas Liutikas | 0ededfb | 2022-04-11 21:25:00 -0700 | [diff] [blame] | 28 | android.experimental.lint.missingBaselineIsEmptyBaseline=true |
Scott Pollom | c801d4e | 2023-08-29 23:16:23 +0000 | [diff] [blame] | 29 | android.experimental.lint.reservedMemoryPerTask=1g |
Aurimas Liutikas | 2f357cb | 2024-02-20 16:33:34 -0800 | [diff] [blame] | 30 | # Remove when AGP defaults to 2.1.0 |
| 31 | android.prefabVersion=2.1.0 |
Alan Viverette | d62a184 | 2021-01-28 15:08:55 -0500 | [diff] [blame] | 32 | |
Alan Viverette | ef1f324 | 2023-06-12 17:02:13 -0400 | [diff] [blame] | 33 | # Do generate versioned API files |
| 34 | androidx.writeVersionedApiFiles=true |
Aurimas Liutikas | 59d77d9 | 2020-03-27 17:29:44 -0700 | [diff] [blame] | 35 | |
Alan Viverette | ef1f324 | 2023-06-12 17:02:13 -0400 | [diff] [blame] | 36 | # Do run the CheckAarMetadata task |
| 37 | android.experimental.disableCompileSdkChecks=false |
Alan Viverette | 5cba57a | 2023-03-23 12:49:13 -0400 | [diff] [blame] | 38 | |
Alan Viverette | 7574792 | 2021-11-09 17:50:49 +0000 | [diff] [blame] | 39 | # Don't warn about needing to update AGP |
Alan Viverette | 93ceb22 | 2023-05-02 15:25:55 -0400 | [diff] [blame] | 40 | android.suppressUnsupportedCompileSdk=UpsideDownCake,VanillaIceCream,33,34 |
Alan Viverette | 7574792 | 2021-11-09 17:50:49 +0000 | [diff] [blame] | 41 | |
Omar Ismail | f780db8 | 2024-04-11 16:00:49 -0400 | [diff] [blame] | 42 | androidx.compileSdk=34 |
Alan Viverette | 7ef42b6 | 2023-06-26 11:04:08 -0400 | [diff] [blame] | 43 | androidx.targetSdkVersion=34 |
Anton Kulakov | fc6cb8d | 2023-10-26 16:23:48 +0000 | [diff] [blame] | 44 | androidx.allowCustomCompileSdk=true |
Alan Viverette | 3cc596b | 2024-02-14 14:22:04 -0500 | [diff] [blame] | 45 | androidx.includeOptionalProjects=false |
Alan Viverette | 7ef42b6 | 2023-06-26 11:04:08 -0400 | [diff] [blame] | 46 | |
Jim S | 1b46525 | 2024-03-08 16:08:44 -0800 | [diff] [blame] | 47 | # Keep ComposeCompiler pinned unless performing Kotlin upgrade & ComposeCompiler release |
Andrei Shikov | 1292c5b | 2024-05-15 19:35:13 +0100 | [diff] [blame] | 48 | androidx.unpinComposeCompiler=false |
Jim S | 1b46525 | 2024-03-08 16:08:44 -0800 | [diff] [blame] | 49 | |
Omar Ismail | 1a1b3c9 | 2024-05-22 10:14:38 +0100 | [diff] [blame] | 50 | # Prefix of projects that are opted-in to use ktfmt |
Omar Ismail | ceafeae | 2024-05-24 11:13:26 +0100 | [diff] [blame] | 51 | androidx.ktfmt.optin=:a,:b,:camera,:car,:collection,:concurrent,:constraintlayout,:core,:customview,:d,:e,:f,:g,:h,:i,:j,:k,:l,:n,:paging,:palette,:preference |
Aurimas Liutikas | 59d77d9 | 2020-03-27 17:29:44 -0700 | [diff] [blame] | 52 | # Disable features we do not use |
| 53 | android.defaults.buildfeatures.aidl=false |
| 54 | android.defaults.buildfeatures.buildconfig=false |
| 55 | android.defaults.buildfeatures.renderscript=false |
| 56 | android.defaults.buildfeatures.resvalues=false |
Aurimas Liutikas | 33ebdb9 | 2020-08-17 08:53:12 -0700 | [diff] [blame] | 57 | android.defaults.buildfeatures.shaders=false |
| 58 | |
Leland Richardson | e368cec | 2021-06-04 15:45:31 -0700 | [diff] [blame] | 59 | # Enable adding baseline-prof.txt files to AAR artifacts |
Jeff Gaston | 6239441 | 2021-07-30 13:47:34 -0400 | [diff] [blame] | 60 | android.experimental.enableArtProfiles=true |
Aurimas Liutikas | 36de1fe | 2023-11-29 15:12:02 -0800 | [diff] [blame] | 61 | # Disables dependency constraints for libraries (b/276714425) |
| 62 | android.experimental.dependency.excludeLibraryComponentsFromConstraints=true |
Jeff Gaston | 6239441 | 2021-07-30 13:47:34 -0400 | [diff] [blame] | 63 | # Disallow resolving dependencies at configuration time, which is a slight performance problem |
| 64 | android.dependencyResolutionAtConfigurationTime.disallow=true |
Anton Kulakov | 77fe685 | 2024-03-08 16:47:16 +0000 | [diff] [blame] | 65 | android.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 Liutikas | ab45dbe | 2021-08-11 10:26:22 -0700 | [diff] [blame] | 66 | # Workaround for b/162074215 |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 67 | android.includeDependencyInfoInApks=false |
Jeff Gaston | 5126dca | 2022-11-18 11:30:47 -0500 | [diff] [blame] | 68 | # Allow multiple r8 tasks at once because otherwise they can make the critical path longer: b/256187923 |
| 69 | android.r8.maxWorkers=2 |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 70 | |
Aurimas Liutikas | 84d086e | 2022-09-29 13:24:04 -0700 | [diff] [blame] | 71 | kotlin.stdlib.default.dependency=false |
| 72 | # mac targets cannot be built on linux, suppress the warning. |
| 73 | kotlin.native.ignoreDisabledTargets=true |
Yigit Boyar | 56108c6 | 2024-05-03 12:01:08 -0700 | [diff] [blame] | 74 | # 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. |
| 77 | kotlin.native.distribution.downloadFromMaven=false |
Aurimas Liutikas | 84d086e | 2022-09-29 13:24:04 -0700 | [diff] [blame] | 78 | kotlin.mpp.enableCInteropCommonization=true |
| 79 | # Suppress pointless warning about mpp being experimental |
| 80 | kotlin.mpp.stability.nowarn=true |
| 81 | # b/227307216 |
| 82 | kotlin.mpp.absentAndroidTarget.nowarn=true |
Fred Sladkey | bb6378e | 2023-08-17 21:22:44 -0400 | [diff] [blame] | 83 | kotlin.mpp.androidSourceSetLayoutVersion=2 |
Andrei Shikov | b4902f3 | 2023-08-12 05:14:30 +0100 | [diff] [blame] | 84 | # Suppress warnings about https://kotl.in/hierarchy-template |
| 85 | kotlin.mpp.applyDefaultHierarchyTemplate=false |
Jim Sproch | 0507f65 | 2022-08-03 05:04:31 -0700 | [diff] [blame] | 86 | # 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. |
| 88 | kotlin.mpp.androidGradlePluginCompatibility.nowarn=true |
Jim Sproch | a0fc810 | 2022-12-06 15:28:12 -0800 | [diff] [blame] | 89 | # Until we get a newer AGP which doesn't do this |
| 90 | kotlin.options.suppressFreeCompilerArgsModificationWarning=true |
Aurimas Liutikas | 84d086e | 2022-09-29 13:24:04 -0700 | [diff] [blame] | 91 | |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 92 | # Properties we often want to toggle |
Jim S | f0b820e0 | 2023-02-14 10:02:59 -0800 | [diff] [blame] | 93 | ksp.version.check=false |
Alan Viverette | cf4546d | 2023-11-21 14:05:32 -0500 | [diff] [blame] | 94 | |
Anton Kulakov | 77fe685 | 2024-03-08 16:47:16 +0000 | [diff] [blame] | 95 | # Enable com.android.privacy-sandbox-sdk plugin |
| 96 | android.experimental.privacysandboxsdk.plugin.enable=true |
| 97 | # Allow non-shim usage |
| 98 | android.experimental.privacysandboxsdk.requireServices=false |
| 99 | |
Alan Viverette | cf4546d | 2023-11-21 14:05:32 -0500 | [diff] [blame] | 100 | # Annotation processors discovery from compile classpath is deprecated |
| 101 | kapt.include.compile.classpath=false |
Radha Nakade | 30fa695 | 2024-05-20 20:18:34 -0700 | [diff] [blame] | 102 | |
| 103 | # Disable dependency analysis on test sources |
| 104 | systemProp.dependency.analysis.test.analysis=false |