blob: 7d9e81a2459da044b5c14662cb8d48138efd1cdc [file] [log] [blame]
Sergey Vasilinets70a2e822017-11-03 12:20:28 -07001/*
2 * Copyright 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 */
16
Louis Pullen-Freilich1dff6782019-10-17 18:12:39 +010017def isUiProject = System.getenv("DIST_SUBDIR") == "/ui"
18
Jake Wharton7495cc12018-01-05 11:05:13 -050019def build_versions = [:]
20
Louis Pullen-Freilich08e53df2019-10-24 20:00:35 +010021// NOTE: lint versions *must* be kept in sync with agp
Louis Pullen-Freilich1dff6782019-10-17 18:12:39 +010022if (isUiProject) {
Jim Sproch66849d12019-10-18 16:28:32 -070023 build_versions.kotlin = "1.3.60-eap-25"
Jim Sproch3c4a8582019-10-28 04:01:07 -070024 build_versions.agp = "4.0.0-alpha01"
Louis Pullen-Freilich08e53df2019-10-24 20:00:35 +010025 build_versions.lint = "27.0.0-alpha01"
Aurimas Liutikasaa460b02019-04-25 16:03:21 -070026} else {
Louis Pullen-Freilich1dff6782019-10-17 18:12:39 +010027 build_versions.kotlin = "1.3.41"
Dustin Lamfdbb3602019-10-31 11:06:21 -070028 build_versions.agp = "3.6.0-beta02"
29 build_versions.lint = "26.6.0-beta02"
Aurimas Liutikasaa460b02019-04-25 16:03:21 -070030}
Louis Pullen-Freilich1dff6782019-10-17 18:12:39 +010031
Tiem Songd3cc61b2019-04-26 13:43:38 -070032build_versions.dokka = '0.9.17-g002'
Jeff Gaston149350d2019-03-08 20:32:29 -050033
Jake Wharton7495cc12018-01-05 11:05:13 -050034rootProject.ext['build_versions'] = build_versions
35
Sergey Vasilinets70a2e822017-11-03 12:20:28 -070036def build_libs = [:]
37
Louis Pullen-Freilich1dff6782019-10-17 18:12:39 +010038build_libs.agp = "com.android.tools.build:gradle:${build_versions.agp}"
Jeff Gastondb2929e2018-03-07 13:52:32 -050039
Oussama Ben Abdelbakif825eb52018-12-04 16:17:00 -050040build_libs.lint = [
Louis Pullen-Freilich08e53df2019-10-24 20:00:35 +010041 core: "com.android.tools.lint:lint:${build_versions.lint}",
42 api: "com.android.tools.lint:lint-api:${build_versions.lint}",
43 tests: "com.android.tools.lint:lint-tests:${build_versions.lint}"
Oussama Ben Abdelbakif825eb52018-12-04 16:17:00 -050044]
45
Jake Wharton7fb397e2018-02-15 23:26:50 -050046build_libs.error_prone_gradle = 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.13'
Jake Wharton7495cc12018-01-05 11:05:13 -050047build_libs.kotlin = [
Louis Pullen-Freilich08e53df2019-10-24 20:00:35 +010048 stdlib: "org.jetbrains.kotlin:kotlin-stdlib:${build_versions.kotlin}",
49 gradle_plugin: "org.jetbrains.kotlin:kotlin-gradle-plugin:${build_versions.kotlin}"
Jake Wharton7495cc12018-01-05 11:05:13 -050050]
Sam Gilbert9d1cee22019-08-12 11:23:10 -040051build_libs.dex_member_list = "com.jakewharton.dex:dex-member-list:4.1.1"
Jeff Gastone8b45d42019-01-17 16:43:49 -050052build_libs.dokka_gradle = [
Louis Pullen-Freilich08e53df2019-10-24 20:00:35 +010053 "org.jetbrains.dokka:dokka-android-gradle-plugin:${build_versions.dokka}",
54 "org.jetbrains.dokka:dokka-gradle-plugin:${build_versions.dokka}",
Jeff Gastone8b45d42019-01-17 16:43:49 -050055]
Aurimas Liutikas419f9932017-12-18 12:53:17 -080056
Sergey Vasilinets70a2e822017-11-03 12:20:28 -070057rootProject.ext['build_libs'] = build_libs