blob: ee15ba2c5ee9af3b3d250eb228233ebe61f93242 [file] [log] [blame]
Yigit Boyar88c16ce2017-02-08 16:06:14 -08001/*
2 * Copyright (C) 2017 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 */
Sergey Vasilinets16385352017-12-13 16:56:47 -080016import android.support.DacOptions
Alan Viverettecc5197e2016-06-13 12:45:07 -040017
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080018buildscript {
Yigit Boyar88c16ce2017-02-08 16:06:14 -080019 ext.supportRootFolder = project.projectDir
Aurimas Liutikas9ab3b4c2017-04-19 09:33:27 -070020 apply from: 'buildSrc/repos.gradle'
Yigit Boyar88c16ce2017-02-08 16:06:14 -080021 apply from: 'buildSrc/init.gradle'
Sergey Vasilinets70a2e822017-11-03 12:20:28 -070022 apply from: 'buildSrc/build_dependencies.gradle'
Yigit Boyar95c6a872017-03-03 10:54:49 -080023 init.setSdkInLocalPropertiesFile()
Aurimas Liutikas9ab3b4c2017-04-19 09:33:27 -070024 repos.addMavenRepositories(repositories)
Aurimas Liutikas75b3d2e2017-03-15 10:34:55 -070025
26 dependencies {
Sergey Vasilinets70a2e822017-11-03 12:20:28 -070027 classpath build_libs.gradle
28 classpath build_libs.jacoco
Aurimas Liutikas75b3d2e2017-03-15 10:34:55 -070029 }
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080030}
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080031
Aurimas Liutikas9ab3b4c2017-04-19 09:33:27 -070032repos.addMavenRepositories(repositories)
Alan Viverettecc5197e2016-06-13 12:45:07 -040033
Yigit Boyar88c16ce2017-02-08 16:06:14 -080034init.setupRepoOutAndBuildNumber()
Alan Viverettecc5197e2016-06-13 12:45:07 -040035
Yigit Boyar88c16ce2017-02-08 16:06:14 -080036init.configureSubProjects()
Alan Viverettecc5197e2016-06-13 12:45:07 -040037
Aurimas Liutikas38e8f4d2017-06-16 08:31:03 -070038init.configureBuildOnServer()
39
Yigit Boyar88c16ce2017-02-08 16:06:14 -080040init.setupRelease()
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080041
Sergey Vasilinets16385352017-12-13 16:56:47 -080042init.enableDoclavaAndJDiff(this, new DacOptions("android/support", "SUPPORT_DATA"))
Yigit Boyar95c6a872017-03-03 10:54:49 -080043
44///// FLATFOOT START
45
46///// FLATFOOT END