Home | History | Annotate | Download | only in buildSrc
      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  */
     16 // Add ext.libs for library versions
     17 def libs = [:]
     18 
     19 libs.exclude_annotations_transitive = {
     20     exclude group: 'androidx.annotation'
     21     transitive = true
     22 }
     23 
     24 libs.exclude_bytebuddy = {
     25     exclude group: 'net.bytebuddy'
     26 }
     27 
     28 libs.exclude_support = {
     29     exclude group: 'com.android.support'
     30     exclude group: 'androidx.annotation'
     31 }
     32 
     33 libs.exclude_for_material = {
     34     transitive = true
     35     exclude group: 'androidx.annotation'
     36     exclude group: 'androidx.core'
     37     exclude group: 'androidx.legacy'
     38     exclude group: 'androidx.fragment'
     39     exclude group: 'androidx.transition'
     40     exclude group: 'androidx.appcompat'
     41     exclude group: 'androidx.recyclerview'
     42     exclude group: 'androidx.cardview'
     43 }
     44 
     45 libs.exclude_for_espresso = {
     46     exclude group: 'androidx.annotation'
     47     exclude group: 'androidx.appcompat'
     48     exclude group: 'androidx.recyclerview'
     49     exclude group: 'androidx.legacy'
     50 }
     51 
     52 libs.support_exclude_config = {
     53     exclude group: 'android.arch.core'
     54     exclude group: 'androidx.lifecycle'
     55 }
     56 
     57 rootProject.ext['libs'] = libs
     58