Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 1 | /* |
| 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 Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame] | 16 | // Add ext.libs for library versions |
| 17 | def libs = [:] |
| 18 | |
| 19 | // Testing dependencies |
Aurimas Liutikas | 963facb | 2017-06-12 10:10:33 -0700 | [diff] [blame] | 20 | libs.mockito_core = 'org.mockito:mockito-core:2.7.6' |
| 21 | libs.dexmaker_mockito = 'com.linkedin.dexmaker:dexmaker-mockito:2.2.0' |
Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame] | 22 | libs.junit = 'junit:junit:4.12' |
Aurimas Liutikas | 1ab9ff4 | 2017-09-25 17:01:12 -0700 | [diff] [blame] | 23 | libs.test_runner = 'com.android.support.test:runner:1.0.1' |
| 24 | libs.test_rules = 'com.android.support.test:rules:1.0.1' |
| 25 | libs.espresso_core = 'com.android.support.test.espresso:espresso-core:3.0.1' |
| 26 | libs.espresso_contrib = 'com.android.support.test.espresso:espresso-contrib:3.0.1' |
Aurimas Liutikas | 1f89c5d | 2017-04-20 10:54:57 -0700 | [diff] [blame] | 27 | libs.jacoco = 'org.jacoco:org.jacoco.core:0.7.8' |
Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame] | 28 | |
Aurimas Liutikas | 9ab3b4c | 2017-04-19 09:33:27 -0700 | [diff] [blame] | 29 | def androidPluginVersionOverride = System.getenv("GRADLE_PLUGIN_VERSION") |
| 30 | |
| 31 | if (androidPluginVersionOverride != null) { |
| 32 | libs.gradle = 'com.android.tools.build:gradle:' + androidPluginVersionOverride |
| 33 | } else { |
| 34 | // Keep gradle plugin version in sync with ub_supportlib-master manifest. |
Aurimas Liutikas | 564b322 | 2017-10-04 15:53:16 -0700 | [diff] [blame] | 35 | libs.gradle = 'com.android.tools.build:gradle:3.0.0-beta7' |
Aurimas Liutikas | 9ab3b4c | 2017-04-19 09:33:27 -0700 | [diff] [blame] | 36 | } |
Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame] | 37 | |
Sergey Vasilinets | c298628 | 2017-08-24 15:46:12 -0700 | [diff] [blame] | 38 | //arch components |
Aurimas Liutikas | eb45a18 | 2017-10-12 14:33:25 -0700 | [diff] [blame] | 39 | libs.arch_lifecycle_runtime = "android.arch.lifecycle:runtime:1.0.0@aar" |
Sergey Vasilinets | c298628 | 2017-08-24 15:46:12 -0700 | [diff] [blame] | 40 | |
Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame] | 41 | // Other dependencies |
| 42 | libs.xml_parser_apis = 'xerces:xmlParserAPIs:2.6.2' |
| 43 | libs.xerces_impl = 'xerces:xercesImpl:2.6.2' |
Aurimas Liutikas | ab01a4b | 2017-04-17 19:08:04 -0700 | [diff] [blame] | 44 | libs.error_prone = 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.10' |
Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame] | 45 | |
Siyamed Sinir | c29ea5f | 2017-03-07 22:10:01 -0800 | [diff] [blame] | 46 | // jarjar plugin |
| 47 | libs.jarjar_gradle = 'org.anarres.jarjar:jarjar-gradle:1.0.0' |
| 48 | |
Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame] | 49 | rootProject.ext['libs'] = libs |