blob: 4f878c1c3753dd40fd4a5b00052f34eebb3479db [file] [log] [blame]
Yigit Boyar88c16ce2017-02-08 16:06:14 -08001/*
Kirill Grouchnikov578e5ba2019-12-17 11:47:24 -05002 * Copyright (C) 2019 The Android Open Source Project
Yigit Boyar88c16ce2017-02-08 16:06:14 -08003 *
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 Liutikas526389b2018-02-27 14:01:24 -080016
Aurimas Liutikas9d8dd892020-04-17 14:46:00 -070017import androidx.build.AndroidXRootPlugin
Aurimas Liutikas55b44ec72018-07-27 16:29:35 -070018import androidx.build.SdkHelperKt
Alan Viverettecc5197e2016-06-13 12:45:07 -040019
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080020buildscript {
Alan Viverettebb04f2e2020-04-09 17:13:37 -040021 SdkHelperKt.setSupportRootFolder(project, project.projectDir)
22
Jim Sproch9e38b4f2021-01-06 14:21:06 -080023 apply from: "buildSrc/repos.gradle"
Aurimas Liutikas9ab3b4c32017-04-19 09:33:27 -070024 repos.addMavenRepositories(repositories)
Alan Viverettebb04f2e2020-04-09 17:13:37 -040025
26 SdkHelperKt.writeSdkPathToLocalPropertiesFile(project)
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080027}
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080028
Jeff Gaston5afa0c72020-04-09 18:07:53 -040029def root = project
30repos.addMavenRepositories(root.repositories)
31subprojects { subproject ->
32 subproject.repositories.addAll(root.repositories)
Aurimas Liutikas00c7dff2019-04-16 15:12:37 -070033}
Alan Viverettecc5197e2016-06-13 12:45:07 -040034
Aurimas Liutikas00c7dff2019-04-16 15:12:37 -070035apply from: "buildSrc/dependencies.gradle"
36apply from: "buildSrc/out.gradle"
37init.chooseOutDir()
Alan Viverettecc5197e2016-06-13 12:45:07 -040038
Aurimas Liutikas9d8dd892020-04-17 14:46:00 -070039apply plugin: AndroidXRootPlugin