Oussama Ben Abdelbaki | f825eb5 | 2018-12-04 16:17:00 -0500 | [diff] [blame] | 1 | /* |
| 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 Liutikas | 6f07871 | 2024-04-03 15:34:06 +0000 | [diff] [blame] | 17 | apply from: "settingsScripts/out-setup.groovy" |
| 18 | getGradle().beforeProject { project -> |
Aurimas Liutikas | 5db86a3 | 2024-08-08 15:57:48 -0700 | [diff] [blame] | 19 | def checkoutRoot = new File("${buildscript.sourceFile.parent}/../../..") |
| 20 | init.chooseBuildDirectory(checkoutRoot, rootProject.name, project) |
Aurimas Liutikas | c7ebc6c | 2024-06-14 15:11:59 -0700 | [diff] [blame] | 21 | // https://youtrack.jetbrains.com/issue/KT-58223 |
Aurimas Liutikas | 5db86a3 | 2024-08-08 15:57:48 -0700 | [diff] [blame] | 22 | def kotlinDir = new File(System.env.OUT_DIR ?: checkoutRoot, ".kotlinBuildSrc") |
Aurimas Liutikas | c7ebc6c | 2024-06-14 15:11:59 -0700 | [diff] [blame] | 23 | project.setProperty("kotlin.project.persistent.dir", kotlinDir.absolutePath) |
Aurimas Liutikas | 6f07871 | 2024-04-03 15:34:06 +0000 | [diff] [blame] | 24 | } |
| 25 | |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 26 | include ":jetpad-integration" |
Jeff Gaston | d72edf2 | 2021-08-24 11:53:54 -0400 | [diff] [blame] | 27 | include ":plugins" |
| 28 | include ":private" |
Aurimas Liutikas | 4209691 | 2021-11-04 10:08:55 -0700 | [diff] [blame] | 29 | include ":public" |
Fred Sladkey | cdb946c | 2024-05-01 13:02:21 -0400 | [diff] [blame] | 30 | include ":imports:binary-compatibility-validator" |
Jeff Gaston | 0915419 | 2023-09-18 14:28:45 -0400 | [diff] [blame] | 31 | include ":imports:benchmark-gradle-plugin" |
| 32 | include ":imports:benchmark-darwin-plugin" |
| 33 | include ":imports:baseline-profile-gradle-plugin" |
| 34 | include ":imports:inspection-gradle-plugin" |
elifbilgin | 93665c6 | 2024-03-06 11:30:57 -0800 | [diff] [blame] | 35 | include ":imports:room-gradle-plugin" |
Jeff Gaston | 0915419 | 2023-09-18 14:28:45 -0400 | [diff] [blame] | 36 | include ":imports:glance-layout-generator" |
| 37 | include ":imports:stableaidl-gradle-plugin" |
Anagha Sasikumar | ca3252f | 2024-12-16 13:50:01 +0000 | [diff] [blame] | 38 | include ":imports:privacysandbox-gradle-plugin" |
Aurimas Liutikas | e1b8458 | 2021-04-23 14:17:30 -0700 | [diff] [blame] | 39 | |
Aurimas Liutikas | e1b8458 | 2021-04-23 14:17:30 -0700 | [diff] [blame] | 40 | dependencyResolutionManagement { |
| 41 | versionCatalogs { |
| 42 | libs { |
Aurimas Liutikas | e1b8458 | 2021-04-23 14:17:30 -0700 | [diff] [blame] | 43 | 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 Liutikas | 55e56d2 | 2023-10-04 12:54:09 -0700 | [diff] [blame] | 48 | 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 Liutikas | e1b8458 | 2021-04-23 14:17:30 -0700 | [diff] [blame] | 53 | } |
| 54 | } |
Alan Viverette | 5f0e16f | 2021-08-20 15:38:19 -0400 | [diff] [blame] | 55 | } |