Home | History | Annotate | Download | only in buildSrc
      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 
     17 def build_versions = [:]
     18 
     19 build_versions.kotlin = '1.2.41'
     20 
     21 rootProject.ext['build_versions'] = build_versions
     22 
     23 
     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.2.0-alpha16'
     33 }
     34 
     35 // jarjar plugin
     36 build_libs.jarjar_gradle = 'org.anarres.jarjar:jarjar-gradle:1.0.0'
     37 build_libs.error_prone_gradle = 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.13'
     38 build_libs.jacoco = 'org.jacoco:org.jacoco.core:0.7.8'
     39 build_libs.jacoco_ant = 'org.jacoco:org.jacoco.ant:0.7.8'
     40 build_libs.kotlin = [
     41         gradle_plugin: "org.jetbrains.kotlin:kotlin-gradle-plugin:${build_versions.kotlin}"
     42 ]
     43 // jdiff dependencies
     44 build_libs.jdiff = 'com.android:jdiff:1.1.0'
     45 build_libs.xml_parser_apis = 'xerces:xmlParserAPIs:2.6.2'
     46 build_libs.xerces_impl = 'xerces:xercesImpl:2.6.2'
     47 
     48 build_libs.doclava = 'com.android:doclava:1.0.6'
     49 
     50 rootProject.ext['build_libs'] = build_libs
     51