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 | |
Jake Wharton | 7495cc1 | 2018-01-05 11:05:13 -0500 | [diff] [blame] | 17 | def build_versions = [:] |
| 18 | |
Yigit Boyar | 9e82863 | 2018-02-05 18:36:08 -0800 | [diff] [blame] | 19 | build_versions.kotlin = '1.2.20' |
Jake Wharton | 7495cc1 | 2018-01-05 11:05:13 -0500 | [diff] [blame] | 20 | |
| 21 | rootProject.ext['build_versions'] = build_versions |
| 22 | |
| 23 | |
Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 24 | def build_libs = [:] |
| 25 | |
| 26 | def androidPluginVersionOverride = System.getenv("GRADLE_PLUGIN_VERSION") |
| 27 | |
| 28 | if (androidPluginVersionOverride != null) { |
| 29 | build_libs.gradle = 'com.android.tools.build:gradle:' + androidPluginVersionOverride |
| 30 | } else { |
| 31 | // Keep gradle plugin version in sync with ub_supportlib-master manifest. |
| 32 | build_libs.gradle = 'com.android.tools.build:gradle:3.0.0' |
| 33 | } |
| 34 | |
| 35 | // jarjar plugin |
| 36 | build_libs.jarjar_gradle = 'org.anarres.jarjar:jarjar-gradle:1.0.0' |
Aurimas Liutikas | 1a1fd46 | 2017-11-22 17:00:43 -0800 | [diff] [blame] | 37 | build_libs.error_prone = 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.13' |
Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 38 | build_libs.jacoco = 'org.jacoco:org.jacoco.core:0.7.8' |
Aurimas Liutikas | 7cf3497 | 2017-12-18 09:27:47 -0800 | [diff] [blame] | 39 | build_libs.jacoco_ant = 'org.jacoco:org.jacoco.ant:0.7.8' |
Filip Pavlis | f61a6d8 | 2017-11-29 15:40:18 +0000 | [diff] [blame] | 40 | build_libs.jetifier = 'androidx.tools.jetifier:gradle-plugin:0.1' |
Jake Wharton | 7495cc1 | 2018-01-05 11:05:13 -0500 | [diff] [blame] | 41 | build_libs.kotlin = [ |
| 42 | gradle_plugin: "org.jetbrains.kotlin:kotlin-gradle-plugin:${build_versions.kotlin}" |
| 43 | ] |
Aurimas Liutikas | 62d3e1d | 2017-11-28 15:28:01 -0800 | [diff] [blame] | 44 | // jdiff dependencies |
Aurimas Liutikas | 419f993 | 2017-12-18 12:53:17 -0800 | [diff] [blame] | 45 | build_libs.jdiff = 'com.android:jdiff:1.1.0' |
Aurimas Liutikas | 62d3e1d | 2017-11-28 15:28:01 -0800 | [diff] [blame] | 46 | build_libs.xml_parser_apis = 'xerces:xmlParserAPIs:2.6.2' |
| 47 | build_libs.xerces_impl = 'xerces:xercesImpl:2.6.2' |
Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 48 | |
Aurimas Liutikas | 419f993 | 2017-12-18 12:53:17 -0800 | [diff] [blame] | 49 | build_libs.doclava = 'com.android:doclava:1.0.6' |
| 50 | |
Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 51 | rootProject.ext['build_libs'] = build_libs |