blob: c84b8d1a0c84e7af0c8a7653d068d82a2c26b1fc [file] [log] [blame]
Oussama Ben Abdelbakif825eb52018-12-04 16:17:00 -05001/*
2 * Copyright 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Aurimas Liutikas6f078712024-04-03 15:34:06 +000017apply from: "settingsScripts/out-setup.groovy"
18getGradle().beforeProject { project ->
Aurimas Liutikas5db86a32024-08-08 15:57:48 -070019 def checkoutRoot = new File("${buildscript.sourceFile.parent}/../../..")
20 init.chooseBuildDirectory(checkoutRoot, rootProject.name, project)
Aurimas Liutikasc7ebc6c2024-06-14 15:11:59 -070021 // https://youtrack.jetbrains.com/issue/KT-58223
Aurimas Liutikas5db86a32024-08-08 15:57:48 -070022 def kotlinDir = new File(System.env.OUT_DIR ?: checkoutRoot, ".kotlinBuildSrc")
Aurimas Liutikasc7ebc6c2024-06-14 15:11:59 -070023 project.setProperty("kotlin.project.persistent.dir", kotlinDir.absolutePath)
Aurimas Liutikas6f078712024-04-03 15:34:06 +000024}
25
Jim Sproch9e38b4f2021-01-06 14:21:06 -080026include ":jetpad-integration"
Jeff Gastond72edf22021-08-24 11:53:54 -040027include ":plugins"
28include ":private"
Aurimas Liutikas42096912021-11-04 10:08:55 -070029include ":public"
Fred Sladkeycdb946c2024-05-01 13:02:21 -040030include ":imports:binary-compatibility-validator"
Jeff Gaston09154192023-09-18 14:28:45 -040031include ":imports:benchmark-gradle-plugin"
32include ":imports:benchmark-darwin-plugin"
33include ":imports:baseline-profile-gradle-plugin"
34include ":imports:inspection-gradle-plugin"
elifbilgin93665c62024-03-06 11:30:57 -080035include ":imports:room-gradle-plugin"
Jeff Gaston09154192023-09-18 14:28:45 -040036include ":imports:glance-layout-generator"
37include ":imports:stableaidl-gradle-plugin"
Anagha Sasikumarca3252f2024-12-16 13:50:01 +000038include ":imports:privacysandbox-gradle-plugin"
Aurimas Liutikase1b84582021-04-23 14:17:30 -070039
Aurimas Liutikase1b84582021-04-23 14:17:30 -070040dependencyResolutionManagement {
41 versionCatalogs {
42 libs {
Aurimas Liutikase1b84582021-04-23 14:17:30 -070043 def agpOverride = System.getenv("GRADLE_PLUGIN_VERSION")
44 if (agpOverride != null) {
45 logger.warn("Using custom version ${agpOverride} of AGP due to GRADLE_PLUGIN_VERSION being set.")
46 version('androidGradlePlugin', agpOverride)
47 }
Aurimas Liutikas55e56d22023-10-04 12:54:09 -070048 def lintOverride = System.getenv("LINT_VERSION")
49 if (lintOverride != null) {
50 logger.warn("Using custom version ${lintOverride} of Lint due to LINT_VERSION being set.")
51 version('androidLint', lintOverride)
52 }
Aurimas Liutikase1b84582021-04-23 14:17:30 -070053 }
54 }
Alan Viverette5f0e16f2021-08-20 15:38:19 -040055}