Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 1 | /* |
Kirill Grouchnikov | 578e5ba | 2019-12-17 11:47:24 -0500 | [diff] [blame] | 2 | * Copyright (C) 2019 The Android Open Source Project |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 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 | */ |
Aurimas Liutikas | 526389b | 2018-02-27 14:01:24 -0800 | [diff] [blame] | 16 | |
Aurimas Liutikas | 9d8dd89 | 2020-04-17 14:46:00 -0700 | [diff] [blame] | 17 | import androidx.build.AndroidXRootPlugin |
Aurimas Liutikas | 55b44ec7 | 2018-07-27 16:29:35 -0700 | [diff] [blame] | 18 | import androidx.build.SdkHelperKt |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 19 | import static androidx.build.dependencies.DependenciesKt.* |
Alan Viverette | cc5197e | 2016-06-13 12:45:07 -0400 | [diff] [blame] | 20 | |
Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 21 | buildscript { |
Alan Viverette | bb04f2e | 2020-04-09 17:13:37 -0400 | [diff] [blame] | 22 | SdkHelperKt.setSupportRootFolder(project, project.projectDir) |
| 23 | |
Aurimas Liutikas | 9ab3b4c3 | 2017-04-19 09:33:27 -0700 | [diff] [blame] | 24 | apply from: 'buildSrc/repos.gradle' |
Sergey Vasilinets | 6aa53ca | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 25 | apply from: 'buildSrc/build_dependencies.gradle' |
Aurimas Liutikas | 9ab3b4c3 | 2017-04-19 09:33:27 -0700 | [diff] [blame] | 26 | repos.addMavenRepositories(repositories) |
Alan Viverette | bb04f2e | 2020-04-09 17:13:37 -0400 | [diff] [blame] | 27 | |
| 28 | SdkHelperKt.writeSdkPathToLocalPropertiesFile(project) |
Aurimas Liutikas | 75b3d2e | 2017-03-15 10:34:55 -0700 | [diff] [blame] | 29 | |
| 30 | dependencies { |
Louis Pullen-Freilich | 1dff678 | 2019-10-17 18:12:39 +0100 | [diff] [blame] | 31 | classpath build_libs.agp |
Chris Craik | 1548629 | 2018-01-17 15:34:59 -0800 | [diff] [blame] | 32 | classpath build_libs.kotlin.gradle_plugin |
Jeff Gaston | a7fd9a3 | 2018-09-26 17:04:43 -0400 | [diff] [blame] | 33 | classpath build_libs.dokka_gradle |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 34 | classpath HILT_ANDROID_GRADLE_PLUGIN |
Yigit Boyar | 562a37d | 2020-03-16 13:00:36 -0700 | [diff] [blame] | 35 | classpath SHADOW_PLUGIN |
Aurimas Liutikas | 75b3d2e | 2017-03-15 10:34:55 -0700 | [diff] [blame] | 36 | } |
Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 37 | } |
Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame] | 38 | |
Jeff Gaston | 5afa0c7 | 2020-04-09 18:07:53 -0400 | [diff] [blame] | 39 | def root = project |
| 40 | repos.addMavenRepositories(root.repositories) |
| 41 | subprojects { subproject -> |
| 42 | subproject.repositories.addAll(root.repositories) |
Aurimas Liutikas | 00c7dff | 2019-04-16 15:12:37 -0700 | [diff] [blame] | 43 | } |
Alan Viverette | cc5197e | 2016-06-13 12:45:07 -0400 | [diff] [blame] | 44 | |
Aurimas Liutikas | 00c7dff | 2019-04-16 15:12:37 -0700 | [diff] [blame] | 45 | apply from: "buildSrc/dependencies.gradle" |
| 46 | apply from: "buildSrc/out.gradle" |
| 47 | init.chooseOutDir() |
Alan Viverette | cc5197e | 2016-06-13 12:45:07 -0400 | [diff] [blame] | 48 | |
Aurimas Liutikas | 9d8dd89 | 2020-04-17 14:46:00 -0700 | [diff] [blame] | 49 | apply plugin: AndroidXRootPlugin |