blob: a00c139c6b6296c2dccd9ca316b1d8bd70d7ef32 [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 */
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080016// Add ext.libs for library versions
17def libs = [:]
18
19// Testing dependencies
Aurimas Liutikas963facb2017-06-12 10:10:33 -070020libs.mockito_core = 'org.mockito:mockito-core:2.7.6'
21libs.dexmaker_mockito = 'com.linkedin.dexmaker:dexmaker-mockito:2.2.0'
22libs.multidex = 'com.android.support:multidex:1.0.1'
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080023libs.junit = 'junit:junit:4.12'
24libs.test_runner = 'com.android.support.test:runner:0.6-alpha'
25libs.espresso_core = 'com.android.support.test.espresso:espresso-core:2.3-alpha'
26libs.espresso_contrib = 'com.android.support.test.espresso:espresso-contrib:2.3-alpha'
Aurimas Liutikas1f89c5d2017-04-20 10:54:57 -070027libs.jacoco = 'org.jacoco:org.jacoco.core:0.7.8'
Conrad Chen6fb3bf62017-06-28 11:44:38 -070028libs.test_rules = 'com.android.support.test:rules:0.6-alpha'
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080029
Aurimas Liutikas9ab3b4c2017-04-19 09:33:27 -070030def androidPluginVersionOverride = System.getenv("GRADLE_PLUGIN_VERSION")
31
32if (androidPluginVersionOverride != null) {
33 libs.gradle = 'com.android.tools.build:gradle:' + androidPluginVersionOverride
34} else {
35 // Keep gradle plugin version in sync with ub_supportlib-master manifest.
Aurimas Liutikasf8a2b6d2017-07-05 11:10:44 -070036 libs.gradle = 'com.android.tools.build:gradle:3.0.0-alpha5'
Aurimas Liutikas9ab3b4c2017-04-19 09:33:27 -070037}
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080038
39// Other dependencies
40libs.xml_parser_apis = 'xerces:xmlParserAPIs:2.6.2'
41libs.xerces_impl = 'xerces:xercesImpl:2.6.2'
Aurimas Liutikasab01a4b2017-04-17 19:08:04 -070042libs.error_prone = 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.10'
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080043
Siyamed Sinirc29ea5f2017-03-07 22:10:01 -080044// jarjar plugin
45libs.jarjar_gradle = 'org.anarres.jarjar:jarjar-gradle:1.0.0'
46
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080047rootProject.ext['libs'] = libs