Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 1 | /* |
| 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-Freilich | 1dff678 | 2019-10-17 18:12:39 +0100 | [diff] [blame] | 17 | def isUiProject = System.getenv("DIST_SUBDIR") == "/ui" |
| 18 | |
Jake Wharton | 7495cc1 | 2018-01-05 11:05:13 -0500 | [diff] [blame] | 19 | def build_versions = [:] |
| 20 | |
Louis Pullen-Freilich | 08e53df | 2019-10-24 20:00:35 +0100 | [diff] [blame] | 21 | // NOTE: lint versions *must* be kept in sync with agp |
Louis Pullen-Freilich | 1dff678 | 2019-10-17 18:12:39 +0100 | [diff] [blame] | 22 | if (isUiProject) { |
Jim Sproch | 66849d1 | 2019-10-18 16:28:32 -0700 | [diff] [blame] | 23 | build_versions.kotlin = "1.3.60-eap-25" |
Jim Sproch | 3c4a858 | 2019-10-28 04:01:07 -0700 | [diff] [blame] | 24 | build_versions.agp = "4.0.0-alpha01" |
Louis Pullen-Freilich | 08e53df | 2019-10-24 20:00:35 +0100 | [diff] [blame] | 25 | build_versions.lint = "27.0.0-alpha01" |
Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 26 | } else { |
Louis Pullen-Freilich | 1dff678 | 2019-10-17 18:12:39 +0100 | [diff] [blame] | 27 | build_versions.kotlin = "1.3.41" |
Dustin Lam | fdbb360 | 2019-10-31 11:06:21 -0700 | [diff] [blame] | 28 | build_versions.agp = "3.6.0-beta02" |
| 29 | build_versions.lint = "26.6.0-beta02" |
Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 30 | } |
Louis Pullen-Freilich | 1dff678 | 2019-10-17 18:12:39 +0100 | [diff] [blame] | 31 | |
Tiem Song | d3cc61b | 2019-04-26 13:43:38 -0700 | [diff] [blame] | 32 | build_versions.dokka = '0.9.17-g002' |
Jeff Gaston | 149350d | 2019-03-08 20:32:29 -0500 | [diff] [blame] | 33 | |
Jake Wharton | 7495cc1 | 2018-01-05 11:05:13 -0500 | [diff] [blame] | 34 | rootProject.ext['build_versions'] = build_versions |
| 35 | |
Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 36 | def build_libs = [:] |
| 37 | |
Louis Pullen-Freilich | 1dff678 | 2019-10-17 18:12:39 +0100 | [diff] [blame] | 38 | build_libs.agp = "com.android.tools.build:gradle:${build_versions.agp}" |
Jeff Gaston | db2929e | 2018-03-07 13:52:32 -0500 | [diff] [blame] | 39 | |
Oussama Ben Abdelbaki | f825eb5 | 2018-12-04 16:17:00 -0500 | [diff] [blame] | 40 | build_libs.lint = [ |
Louis Pullen-Freilich | 08e53df | 2019-10-24 20:00:35 +0100 | [diff] [blame] | 41 | 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 Abdelbaki | f825eb5 | 2018-12-04 16:17:00 -0500 | [diff] [blame] | 44 | ] |
| 45 | |
Jake Wharton | 7fb397e | 2018-02-15 23:26:50 -0500 | [diff] [blame] | 46 | build_libs.error_prone_gradle = 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.13' |
Jake Wharton | 7495cc1 | 2018-01-05 11:05:13 -0500 | [diff] [blame] | 47 | build_libs.kotlin = [ |
Louis Pullen-Freilich | 08e53df | 2019-10-24 20:00:35 +0100 | [diff] [blame] | 48 | stdlib: "org.jetbrains.kotlin:kotlin-stdlib:${build_versions.kotlin}", |
| 49 | gradle_plugin: "org.jetbrains.kotlin:kotlin-gradle-plugin:${build_versions.kotlin}" |
Jake Wharton | 7495cc1 | 2018-01-05 11:05:13 -0500 | [diff] [blame] | 50 | ] |
Sam Gilbert | 9d1cee2 | 2019-08-12 11:23:10 -0400 | [diff] [blame] | 51 | build_libs.dex_member_list = "com.jakewharton.dex:dex-member-list:4.1.1" |
Jeff Gaston | e8b45d4 | 2019-01-17 16:43:49 -0500 | [diff] [blame] | 52 | build_libs.dokka_gradle = [ |
Louis Pullen-Freilich | 08e53df | 2019-10-24 20:00:35 +0100 | [diff] [blame] | 53 | "org.jetbrains.dokka:dokka-android-gradle-plugin:${build_versions.dokka}", |
| 54 | "org.jetbrains.dokka:dokka-gradle-plugin:${build_versions.dokka}", |
Jeff Gaston | e8b45d4 | 2019-01-17 16:43:49 -0500 | [diff] [blame] | 55 | ] |
Aurimas Liutikas | 419f993 | 2017-12-18 12:53:17 -0800 | [diff] [blame] | 56 | |
Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 57 | rootProject.ext['build_libs'] = build_libs |